- 1
- 2
- 3
- 4
- 5
public void restore(HashMap<String, Object> dump) {
if(dump != null) {
if(isInitialized()) {
if(isInitialized()) {
clear();
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
Всего: 16
+79
public void restore(HashMap<String, Object> dump) {
if(dump != null) {
if(isInitialized()) {
if(isInitialized()) {
clear();
"Проинициализировано? Точно-точно?"
+972
str3 = "Insert Into orderList(OrderNo,Date,StoreName,TagCode,Size,Colour,TwoSidedEngraving,
EngravingOptions,PetsName,PetsNameTwoSide,Phone1,Phone1TwoSide,Phone2,Phone2TwoSide,
Phone3,Phone3TwoSide,OwnersFirstName,OwnersLastName,StreetAddress,Suburb,State,ZipCode,
Country,MStreetAddress,MSuburb,MState,MZipCode,MCountry,OwnersFirstNameTwoSide,
OwnersLastNameTwoSide,StreetAddressTwoSide,SuburbTwoSide,StateTwoSide,ZipCodeTwoSide,
flag,Other9,idcust,Receiver,demo,databasename,isonline,faxfile) values(N'" + this.Request.Form["Orderno"] +
"',Getdate(),N'" + Strings.Replace(this.Request.Form["storename"],"'", "''", 1, -1, CompareMethod.Binary) +
"',N'" + str + "',N'" + this.Request.Form["tagSize"] + "',N'" + this.Request.Form["tagcolor"] + "',N'" +
this.Request.Form["TwoSide"] + "',N'" + str2 + "',N'" +
Strings.Replace(Strings.Replace(this.Convert(this.Request.Form["PetsName"]), "'", "''", 1, -1,
CompareMethod.Binary), "\"", "\"", 1, -1, CompareMethod.Binary) + "',N'" +
this.Request.Form["chbPetsName"] + "',N'" +
Strings.Replace(Strings.Replace(Strings.UCase(this.Convert(this.Request.Form["Phone1"])), "'", "''",
1, -1, CompareMethod.Binary), "\"", "\"", 1, -1, CompareMethod.Binary) + "',N'" +
this.Request.Form["chbPhone1"] + "',N'" +
Strings.Replace(Strings.Replace(Strings.UCase(this.Convert(this.Request.Form["Phone2"])),
"'", "''", 1, -1, CompareMethod.Binary),
"\"", "\"", 1, -1, CompareMethod.Binary) + "',N'" + this.Request.Form["chbPhone2"] + "',N'" +
Strings.Replace(Strings.Replace(Strings.UCase(this.Convert(this.Request.Form["Phone3"])),
"'", "''", 1, -1, CompareMethod.Binary),
"\"", "\"", 1, -1, CompareMethod.Binary) + "',N'" + this.Request.Form["chbPhone3"] + "',N'" +
Strings.Replace(Strings.Replace(Strings.UCase(this.Convert(this.Request.Form["FirstName"])),
"'", "''", 1, -1, CompareMethod.Binary),
"\"", "\"", 1, -1, CompareMethod.Binary) + "',N'" +
Strings.Replace(Strings.Replace(Strings.UCase(this.Convert(this.Request.Form["LastName"])),
"'", "''", 1, -1, CompareMethod.Binary),
<ну и так далее...>
this.Response.Write(function.ExecuteSql(str3));
+84
double speed = ....;
this.speed = new Double(speed).floatValue();
Оригинальный способ преобразования double в float.
+171
var e=("article,aside,footer,header,nav,section").split(',');
Найдено в дебрях одного сайта.
+83
try
{
nIndex = Integer.parseInt(sRowIndex.trim());
}
catch(NumberFormatException e)
{
//异常处理
nIndex = -2;
}
if(nIndex < 0) return;
Китайцы продолжают отжигать.
+80
public class ... extends Applet implements MouseListener, ActionListener {
...
@Override
public void actionPerformed(ActionEvent arg0)
{
// TODO Auto-generated method stub
boolean bNeedRepaint = false;
if(arg0.getSource() == m_ZoomIn)
{
...
}
else if(arg0.getSource() == m_ZoomOut)
{
...
}
else if(arg0.getSource() == m_ZoomBack)
{
...
}
else if(arg0.getSource() == m_MaxHeight)
{
...
}
else if(arg0.getSource() == m_MinHeight)
{
...
}
else if(arg0.getSource() == m_MaxWidth)
{
...
}
else if(arg0.getSource() == m_MinWidth)
{
...
}
else if(arg0.getSource() == m_MaxSpace)
{
...
}
else if(arg0.getSource() == m_MinSpace)
{
...
}
else if(arg0.getSource() == m_MovLeft)
{
...
}
else if(arg0.getSource() == m_MovRight)
{
...
}
else if(arg0.getSource() == m_MovUp)
{
...
}
else if(arg0.getSource() == m_MovDown)
{
...
}
else if(arg0.getSource() == m_AlignCenter)
{
...
}
else if(arg0.getSource() == m_TxtFirst)
{
...
}
}
}
Из апплета, присланного китайцами для интеграции в наше веб-приложение.