fixed some Netbeans code hints

This commit is contained in:
2014-09-07 22:25:06 +02:00
parent 6c7223bba9
commit 8ae999a617
32 changed files with 507 additions and 509 deletions
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.decompiler.flash.action.model;
import com.jpexs.decompiler.flash.SourceGeneratorLocalData;
@@ -70,7 +71,7 @@ public class PostDecrementActionItem extends ActionItem implements SetTypeAction
@Override
public GraphTargetItem getValue() {
return new SubtractActionItem(null, object, new DirectValueActionItem(null, 0, new Long(1), null));
return new SubtractActionItem(null, object, new DirectValueActionItem(null, 0, 1L, null));
}
@Override
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.decompiler.flash.action.model;
import com.jpexs.decompiler.flash.SourceGeneratorLocalData;
@@ -70,7 +71,7 @@ public class PostIncrementActionItem extends ActionItem implements SetTypeAction
@Override
public GraphTargetItem getValue() {
return new AddActionItem(null, object, new DirectValueActionItem(null, 0, new Long(1), null), true);
return new AddActionItem(null, object, new DirectValueActionItem(null, 0, 1L, null), true);
}
@Override
@@ -963,7 +963,7 @@ public final class FlasmLexer {
case 44:
break;
case 24: {
return new ASMParsedSymbol(ASMParsedSymbol.TYPE_FLOAT, new Double(Double.parseDouble((yytext()))));
return new ASMParsedSymbol(ASMParsedSymbol.TYPE_FLOAT, Double.parseDouble((yytext())));
}
case 45:
break;
@@ -1017,7 +1017,7 @@ public final class FlasmLexer {
case 54:
break;
case 10: {
return new ASMParsedSymbol(ASMParsedSymbol.TYPE_INTEGER, new Long(Long.parseLong((yytext()))));
return new ASMParsedSymbol(ASMParsedSymbol.TYPE_INTEGER, Long.parseLong((yytext())));
}
case 55:
break;
@@ -1629,7 +1629,7 @@ public final class ActionScriptLexer {
case 194:
break;
case 13: {
return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, new Long(Long.parseLong((yytext()))));
return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong((yytext())));
}
case 195:
break;
@@ -1788,7 +1788,7 @@ public final class ActionScriptLexer {
case 224:
break;
case 43: {
return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, new Double(Double.parseDouble((yytext()))));
return new ParsedSymbol(SymbolGroup.DOUBLE, SymbolType.DOUBLE, Double.parseDouble((yytext())));
}
case 225:
break;
@@ -1823,7 +1823,7 @@ public final class ActionScriptLexer {
case 231:
break;
case 50: {
return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, new Long(Long.parseLong(yytext(), 8)));
return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong(yytext(), 8));
}
case 232:
break;
@@ -2002,7 +2002,7 @@ public final class ActionScriptLexer {
case 265:
break;
case 84: {
return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, new Long(Long.parseLong(yytext().substring(2), 16)));
return new ParsedSymbol(SymbolGroup.INTEGER, SymbolType.INTEGER, Long.parseLong(yytext().substring(2), 16));
}
case 266:
break;
@@ -857,7 +857,7 @@ public class ActionScriptParser {
lockCenter = (expression(registerVars, inFunction, inMethod, true, variables));
s = lex();
if (s.type == SymbolType.COMMA) {
constrain = new DirectValueActionItem(null, 0, new Long(1), new ArrayList<String>());
constrain = new DirectValueActionItem(null, 0, 1L, new ArrayList<String>());
x1 = (expression(registerVars, inFunction, inMethod, true, variables));
s = lex();
if (s.type == SymbolType.COMMA) {
@@ -870,28 +870,28 @@ public class ActionScriptParser {
y2 = (expression(registerVars, inFunction, inMethod, true, variables));
} else {
lexer.pushback(s);
y2 = new DirectValueActionItem(null, 0, (Long) 0L, new ArrayList<String>());
y2 = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
}
} else {
lexer.pushback(s);
x2 = new DirectValueActionItem(null, 0, (Long) 0L, new ArrayList<String>());
y2 = new DirectValueActionItem(null, 0, (Long) 0L, new ArrayList<String>());
x2 = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
y2 = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
}
} else {
lexer.pushback(s);
x2 = new DirectValueActionItem(null, 0, (Long) 0L, new ArrayList<String>());
y2 = new DirectValueActionItem(null, 0, (Long) 0L, new ArrayList<String>());
y1 = new DirectValueActionItem(null, 0, (Long) 0L, new ArrayList<String>());
x2 = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
y2 = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
y1 = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
}
} else {
lexer.pushback(s);
constrain = new DirectValueActionItem(null, 0, new Long(0), new ArrayList<String>());
constrain = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
//ret.add(new ActionPush(Boolean.FALSE));
}
} else {
lockCenter = new DirectValueActionItem(null, 0, new Long(0), new ArrayList<String>());
constrain = new DirectValueActionItem(null, 0, new Long(0), new ArrayList<String>());
lockCenter = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
constrain = new DirectValueActionItem(null, 0, 0L, new ArrayList<String>());
lexer.pushback(s);
}
expectedType(SymbolType.PARENT_CLOSE);
@@ -743,7 +743,7 @@ public class ActionSourceGenerator implements SourceGenerator {
globImp.addAll(impList);
constr.addAll(typeToActions(globImp, null));
}
constr.add(new ActionPush(new Long(implementsStr.size())));
constr.add(new ActionPush((long) implementsStr.size()));
constr.addAll(typeToActions(globalClassTypeStr, null));
constr.add(new ActionImplementsOp());
}