Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
scalagen/src/test/scala/com/mysema/examples/DoublePrimitive.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
scalagen/src/test/scala/com/mysema/examples/PrimitiveInits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.mysema.examples; | ||
|
||
public class PrimitiveInits { | ||
|
||
double a = 3; | ||
|
||
void doSomething() { | ||
// byte | ||
byte b = 0; | ||
// char | ||
char c = 0; | ||
// int | ||
int i = 2; | ||
// long | ||
long l1 = 1; | ||
long l2 = 2l; | ||
// float | ||
float f1 = 3f; | ||
float f2 = 3; | ||
// double | ||
double d1 = 2d; | ||
double d2 = 2.0; | ||
double d3 = 2; | ||
System.out.println(a + d1); | ||
} | ||
|
||
} |