Skip to content

Commit

Permalink
fixed test and added semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheigutn committed Apr 10, 2016
1 parent 0eaefbc commit 4858da6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Expand Up @@ -88,7 +88,7 @@ protected void generatePsiElements(@NotNull final PsiClass psiClass, @NotNull Ps
.withNavigationElement(psiAnnotation) .withNavigationElement(psiAnnotation)
.withModifier(PsiModifier.PRIVATE); .withModifier(PsiModifier.PRIVATE);


String methodBody = String.format("throw new %s(%s)", "java.lang.UnsupportedOperationException", "\"This is a utility class and cannot be instantiated\""); String methodBody = String.format("throw new %s(%s);", "java.lang.UnsupportedOperationException", "\"This is a utility class and cannot be instantiated\"");


constructor.withBody(PsiMethodUtil.createCodeBlockFromText(methodBody, psiClass)); constructor.withBody(PsiMethodUtil.createCodeBlockFromText(methodBody, psiClass));
target.add(constructor); target.add(constructor);
Expand Down
Expand Up @@ -11,7 +11,7 @@ protected boolean shouldCompareModifiers() {
return ApplicationInfo.getInstance().getBuild().compareTo(BuildNumber.fromString("146.1154")) >= 0; return ApplicationInfo.getInstance().getBuild().compareTo(BuildNumber.fromString("146.1154")) >= 0;
} }


public void testUtilityClassPlain() throws IOException { public void testUtilityclass$UtilityClassPlain() throws IOException {
doTest(true); doTest(true);
} }
} }
Expand Up @@ -2,7 +2,7 @@ public final class UtilityClassPlain {
private final static int CONSTANT = 5; private final static int CONSTANT = 5;


private UtilityClassPlain() { private UtilityClassPlain() {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated") throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
} }


public static int addSomething(int in) { public static int addSomething(int in) {
Expand Down
File renamed without changes.

0 comments on commit 4858da6

Please sign in to comment.