aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/experimental/FieldDefaultsExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples/experimental/FieldDefaultsExample_post.jpage')
-rw-r--r--website/usageExamples/experimental/FieldDefaultsExample_post.jpage12
1 files changed, 12 insertions, 0 deletions
diff --git a/website/usageExamples/experimental/FieldDefaultsExample_post.jpage b/website/usageExamples/experimental/FieldDefaultsExample_post.jpage
new file mode 100644
index 00000000..95c17a4b
--- /dev/null
+++ b/website/usageExamples/experimental/FieldDefaultsExample_post.jpage
@@ -0,0 +1,12 @@
+public class FieldDefaultsExample {
+ public final int a;
+ private final int b;
+ private int c;
+ final int d;
+
+ FieldDefaultsExample() {
+ a = 0;
+ b = 0;
+ d = 0;
+ }
+}