Skip to content

Commit

Permalink
Update p-j-f tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdanfox committed Oct 15, 2019
1 parent 56b0f42 commit bf70033
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ public class Test {
void test() {
int x = 1;
System.out.println("Hello");
Optional.of("hello")
.orElseGet(
() -> {
return "Hello World";
});
Optional.of("hello").orElseGet(() -> {
return "Hello World";
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ public class Test {
void test() {
int x = 1;
System.out.println("Hello");
Optional.of("hello")
.orElseGet(
() -> {
return "Hello World";
});
Optional.of("hello").orElseGet(() -> {
return "Hello World";
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
class MultilineStringConstant {

// NON-NLS comments are required for i18n, it's important they are kept with their strings.
private static final String MULTIPLE_LINE_NON_NLS =
"field_0,"
+ //$NON-NLS-1$
"field_1,"
+ //$NON-NLS-1$
"field_2,"
+ //$NON-NLS-1$
"field_3,"
+ //$NON-NLS-1$
"field_4"; //$NON-NLS-1$
private static final String MULTIPLE_LINE_NON_NLS = "field_0,"
+ //$NON-NLS-1$
"field_1,"
+ //$NON-NLS-1$
"field_2,"
+ //$NON-NLS-1$
"field_3,"
+ //$NON-NLS-1$
"field_4"; //$NON-NLS-1$

private static final String MULTIPLE_LINE_NO_COMMENT =
"field_0," + "field_1," + "field_2," + "field_3," + "field_4";
Expand Down

0 comments on commit bf70033

Please sign in to comment.