formatting

This commit is contained in:
Stepan Koltsov
2012-06-08 21:36:49 +04:00
parent 321c781c90
commit acac0eddc7
48 changed files with 475 additions and 475 deletions
@@ -1701,23 +1701,23 @@ public class JavaDescriptorResolver implements DependencyClassByQualifiedNameRes
continue;
}
Object literalValue = ((PsiLiteralExpression) value).getValue();
if(literalValue instanceof String)
if (literalValue instanceof String)
valueArguments.add(new StringValue((String) literalValue));
else if(literalValue instanceof Byte)
else if (literalValue instanceof Byte)
valueArguments.add(new ByteValue((Byte) literalValue));
else if(literalValue instanceof Short)
else if (literalValue instanceof Short)
valueArguments.add(new ShortValue((Short) literalValue));
else if(literalValue instanceof Character)
else if (literalValue instanceof Character)
valueArguments.add(new CharValue((Character) literalValue));
else if(literalValue instanceof Integer)
else if (literalValue instanceof Integer)
valueArguments.add(new IntValue((Integer) literalValue));
else if(literalValue instanceof Long)
else if (literalValue instanceof Long)
valueArguments.add(new LongValue((Long) literalValue));
else if(literalValue instanceof Float)
else if (literalValue instanceof Float)
valueArguments.add(new FloatValue((Float) literalValue));
else if(literalValue instanceof Double)
else if (literalValue instanceof Double)
valueArguments.add(new DoubleValue((Double) literalValue));
else if(literalValue == null)
else if (literalValue == null)
valueArguments.add(NullValue.NULL);
}
@@ -216,9 +216,9 @@ public class JavaTypeTransformer {
@Override
public JetType visitArrayType(PsiArrayType arrayType) {
PsiType componentType = arrayType.getComponentType();
if(componentType instanceof PsiPrimitiveType) {
if (componentType instanceof PsiPrimitiveType) {
JetType jetType = getPrimitiveTypesMap().get("[" + componentType.getCanonicalText());
if(jetType != null)
if (jetType != null)
return TypeUtils.makeNullable(jetType);
}