Browse Source

jme3-examples: privatize package-visible fields

Stephen Gold 4 years ago
parent
commit
179fd66b7b
81 changed files with 447 additions and 447 deletions
  1. 2 2
      jme3-examples/src/main/java/jme3test/animation/TestIssue1138.java
  2. 2 2
      jme3-examples/src/main/java/jme3test/animation/TestJaime.java
  3. 7 7
      jme3-examples/src/main/java/jme3test/app/TestIDList.java
  4. 12 12
      jme3-examples/src/main/java/jme3test/batching/TestBatchNodeCluster.java
  5. 12 12
      jme3-examples/src/main/java/jme3test/batching/TestBatchNodeTower.java
  6. 3 3
      jme3-examples/src/main/java/jme3test/bullet/TestBetterCharacter.java
  7. 9 9
      jme3-examples/src/main/java/jme3test/bullet/TestBrickTower.java
  8. 7 7
      jme3-examples/src/main/java/jme3test/bullet/TestBrickWall.java
  9. 7 7
      jme3-examples/src/main/java/jme3test/bullet/TestHoveringTank.java
  10. 8 8
      jme3-examples/src/main/java/jme3test/bullet/TestIssue877.java
  11. 5 5
      jme3-examples/src/main/java/jme3test/bullet/TestIssue883.java
  12. 2 2
      jme3-examples/src/main/java/jme3test/bullet/TestKinematicAddToPhysicsSpaceIssue.java
  13. 3 3
      jme3-examples/src/main/java/jme3test/bullet/TestPhysicsCharacter.java
  14. 22 22
      jme3-examples/src/main/java/jme3test/bullet/TestWalkingChar.java
  15. 3 3
      jme3-examples/src/main/java/jme3test/collision/TestMousePick.java
  16. 3 3
      jme3-examples/src/main/java/jme3test/collision/TestTriangleCollision.java
  17. 3 3
      jme3-examples/src/main/java/jme3test/export/TestAssetLinkNode.java
  18. 4 4
      jme3-examples/src/main/java/jme3test/games/RollingTheMonkey.java
  19. 2 2
      jme3-examples/src/main/java/jme3test/helloworld/HelloAnimation.java
  20. 2 2
      jme3-examples/src/main/java/jme3test/helloworld/HelloInput.java
  21. 4 4
      jme3-examples/src/main/java/jme3test/helloworld/HelloPhysics.java
  22. 2 2
      jme3-examples/src/main/java/jme3test/helloworld/HelloTerrain.java
  23. 4 4
      jme3-examples/src/main/java/jme3test/input/TestCameraNode.java
  24. 9 9
      jme3-examples/src/main/java/jme3test/input/TestJoystick.java
  25. 9 9
      jme3-examples/src/main/java/jme3test/light/TestConeVSFrustum.java
  26. 10 10
      jme3-examples/src/main/java/jme3test/light/TestDirectionalLightShadow.java
  27. 3 3
      jme3-examples/src/main/java/jme3test/light/TestLightNode.java
  28. 4 4
      jme3-examples/src/main/java/jme3test/light/TestLightRadius.java
  29. 9 9
      jme3-examples/src/main/java/jme3test/light/TestManyLightsSingle.java
  30. 11 11
      jme3-examples/src/main/java/jme3test/light/TestPointDirectionalAndSpotLightShadows.java
  31. 5 5
      jme3-examples/src/main/java/jme3test/light/TestPointLightShadows.java
  32. 9 9
      jme3-examples/src/main/java/jme3test/light/TestShadowsPerf.java
  33. 4 4
      jme3-examples/src/main/java/jme3test/light/TestSimpleLighting.java
  34. 4 4
      jme3-examples/src/main/java/jme3test/light/TestSpotLight.java
  35. 5 5
      jme3-examples/src/main/java/jme3test/light/TestSpotLightShadows.java
  36. 10 10
      jme3-examples/src/main/java/jme3test/light/TestSpotLightTerrain.java
  37. 4 4
      jme3-examples/src/main/java/jme3test/light/TestTangentGen.java
  38. 4 4
      jme3-examples/src/main/java/jme3test/light/TestTangentGenBadUV.java
  39. 4 4
      jme3-examples/src/main/java/jme3test/light/TestTwoSideLighting.java
  40. 2 2
      jme3-examples/src/main/java/jme3test/light/pbr/ConsoleProgressReporter.java
  41. 3 3
      jme3-examples/src/main/java/jme3test/material/TestBumpModel.java
  42. 4 4
      jme3-examples/src/main/java/jme3test/material/TestNormalMapping.java
  43. 6 6
      jme3-examples/src/main/java/jme3test/material/TestParallax.java
  44. 6 6
      jme3-examples/src/main/java/jme3test/material/TestParallaxPBR.java
  45. 4 4
      jme3-examples/src/main/java/jme3test/material/TestSimpleBumps.java
  46. 2 2
      jme3-examples/src/main/java/jme3test/material/TestTessellationShader.java
  47. 13 13
      jme3-examples/src/main/java/jme3test/model/TestGltfLoading.java
  48. 4 4
      jme3-examples/src/main/java/jme3test/model/TestMonkeyHead.java
  49. 7 7
      jme3-examples/src/main/java/jme3test/model/TestOgreLoading.java
  50. 6 6
      jme3-examples/src/main/java/jme3test/model/anim/TestAnimMigration.java
  51. 5 5
      jme3-examples/src/main/java/jme3test/model/anim/TestAnimMorphSerialization.java
  52. 5 5
      jme3-examples/src/main/java/jme3test/model/anim/TestAnimSerialization.java
  53. 2 2
      jme3-examples/src/main/java/jme3test/model/anim/TestArmature.java
  54. 5 5
      jme3-examples/src/main/java/jme3test/model/anim/TestBaseAnimSerialization.java
  55. 1 1
      jme3-examples/src/main/java/jme3test/model/anim/TestMorph.java
  56. 3 3
      jme3-examples/src/main/java/jme3test/model/shape/TestBillboard.java
  57. 3 3
      jme3-examples/src/main/java/jme3test/network/TestLatency.java
  58. 15 15
      jme3-examples/src/main/java/jme3test/network/TestSerialization.java
  59. 2 2
      jme3-examples/src/main/java/jme3test/post/SSAOUI.java
  60. 8 8
      jme3-examples/src/main/java/jme3test/post/TestBloom.java
  61. 8 8
      jme3-examples/src/main/java/jme3test/post/TestBloomAlphaThreshold.java
  62. 8 8
      jme3-examples/src/main/java/jme3test/post/TestCrossHatch.java
  63. 3 3
      jme3-examples/src/main/java/jme3test/post/TestDepthOfField.java
  64. 4 4
      jme3-examples/src/main/java/jme3test/post/TestMultiplesFilters.java
  65. 2 2
      jme3-examples/src/main/java/jme3test/post/TestPostFilters.java
  66. 3 3
      jme3-examples/src/main/java/jme3test/post/TestPosterization.java
  67. 2 2
      jme3-examples/src/main/java/jme3test/post/TestSSAO.java
  68. 2 2
      jme3-examples/src/main/java/jme3test/post/TestSSAO2.java
  69. 6 6
      jme3-examples/src/main/java/jme3test/renderer/TestSplitScreen.java
  70. 2 2
      jme3-examples/src/main/java/jme3test/scene/instancing/TestInstanceNodeWithLight.java
  71. 3 3
      jme3-examples/src/main/java/jme3test/stress/TestLodGeneration.java
  72. 2 2
      jme3-examples/src/main/java/jme3test/stress/TestParallelTangentGeneration.java
  73. 1 1
      jme3-examples/src/main/java/jme3test/terrain/TerrainGridAlphaMapTest.java
  74. 7 7
      jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java
  75. 9 9
      jme3-examples/src/main/java/jme3test/terrain/TerrainTestAdvanced.java
  76. 7 7
      jme3-examples/src/main/java/jme3test/terrain/TerrainTestAndroid.java
  77. 12 12
      jme3-examples/src/main/java/jme3test/terrain/TerrainTestCollision.java
  78. 7 7
      jme3-examples/src/main/java/jme3test/terrain/TerrainTestModifyHeight.java
  79. 7 7
      jme3-examples/src/main/java/jme3test/terrain/TerrainTestTile.java
  80. 7 7
      jme3-examples/src/main/java/jme3test/water/TestPostWater.java
  81. 7 7
      jme3-examples/src/main/java/jme3test/water/TestSimpleWater.java

+ 2 - 2
jme3-examples/src/main/java/jme3test/animation/TestIssue1138.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019 jMonkeyEngine
+ * Copyright (c) 2019-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -50,7 +50,7 @@ import com.jme3.scene.Node;
  */
 public class TestIssue1138 extends SimpleApplication {
 
-    SkinningControl sControl;
+    private SkinningControl sControl;
 
     public static void main(String... argv) {
         new TestIssue1138().start();

+ 2 - 2
jme3-examples/src/main/java/jme3test/animation/TestJaime.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -73,7 +73,7 @@ import com.jme3.shadow.SpotLightShadowRenderer;
 public class TestJaime  extends SimpleApplication {
 
    
-    Cinematic cinematic;
+    private Cinematic cinematic;
     
     public static void main(String... argv){
         TestJaime app = new TestJaime();

+ 7 - 7
jme3-examples/src/main/java/jme3test/app/TestIDList.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -39,9 +39,9 @@ public class TestIDList {
 
     static class StateCol {
 
-        static Random rand = new Random();
+        private static Random rand = new Random();
 
-        Map<Integer, Object> objs = new HashMap<Integer, Object>();
+        private Map<Integer, Object> objs = new HashMap<Integer, Object>();
 
         public StateCol(){
             // populate with free ids
@@ -74,11 +74,11 @@ public class TestIDList {
 
     }
 
-    static IDList list = new IDList();
-    static int boundSlot = 0;
+    private static IDList list = new IDList();
+    private static int boundSlot = 0;
     
-    static Object[] slots = new Object[16];
-    static boolean[] enabledSlots = new boolean[16];
+    private static Object[] slots = new Object[16];
+    private static boolean[] enabledSlots = new boolean[16];
 
     static void enable(int slot){
         System.out.println("Enabled SLOT["+slot+"]");

+ 12 - 12
jme3-examples/src/main/java/jme3test/batching/TestBatchNodeCluster.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -87,11 +87,11 @@ public class TestBatchNodeCluster extends SimpleApplication {
     protected boolean isTrue = true;
     private int lineLength = 50;
     protected BatchNode batchNode;
-    Material mat1;
-    Material mat2;
-    Material mat3;
-    Material mat4;
-    Node terrain;
+    private Material mat1;
+    private Material mat2;
+    private Material mat3;
+    private Material mat4;
+    private Node terrain;
     //protected
 //    protected Geometry player;
 
@@ -335,12 +335,12 @@ public class TestBatchNodeCluster extends SimpleApplication {
     public int getz(int i) {
         return zPosition.get(i);
     }
-    long nbFrames = 0;
-    long cullTime = 0;
-    float time = 0;
-    Vector3f lookAtPos = new Vector3f(0, 0, 0);
-    float xpos = 0;
-    Spatial box;
+    private long nbFrames = 0;
+    private long cullTime = 0;
+    private float time = 0;
+    private Vector3f lookAtPos = new Vector3f(0, 0, 0);
+    private float xpos = 0;
+    private Spatial box;
 
     @Override
     public void simpleUpdate(float tpf) {

+ 12 - 12
jme3-examples/src/main/java/jme3test/batching/TestBatchNodeTower.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -67,24 +67,24 @@ import jme3test.bullet.BombControl;
  */
 public class TestBatchNodeTower extends SimpleApplication {
 
-    int bricksPerLayer = 8;
-    int brickLayers = 30;
+    private int bricksPerLayer = 8;
+    private int brickLayers = 30;
 
-    static float brickWidth = .75f, brickHeight = .25f, brickDepth = .25f;
-    float radius = 3f;
-    float angle = 0;
+    private static float brickWidth = .75f, brickHeight = .25f, brickDepth = .25f;
+    private float radius = 3f;
+    private float angle = 0;
 
 
-    Material mat;
-    Material mat2;
-    Material mat3;
-    DirectionalLightShadowFilter shadowRenderer;
+    private Material mat;
+    private Material mat2;
+    private Material mat3;
+    private DirectionalLightShadowFilter shadowRenderer;
     private Sphere bullet;
     private Box brick;
     private SphereCollisionShape bulletCollisionShape;
 
     private BulletAppState bulletAppState;
-    BatchNode batchNode = new BatchNode("batch Node");
+    private BatchNode batchNode = new BatchNode("batch Node");
     
     public static void main(String args[]) {
         TestBatchNodeTower f = new TestBatchNodeTower();
@@ -226,7 +226,7 @@ public class TestBatchNodeTower extends SimpleApplication {
         tex3.setWrap(WrapMode.Repeat);
         mat3.setTexture("ColorMap", tex3);
     }
-int nbBrick =0;
+    private int nbBrick =0;
     public void addBrick(Vector3f ori) {
         Geometry reBoxg = new Geometry("brick", brick);
         reBoxg.setMaterial(mat);

+ 3 - 3
jme3-examples/src/main/java/jme3test/bullet/TestBetterCharacter.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -63,10 +63,10 @@ public class TestBetterCharacter extends SimpleApplication implements ActionList
     private BetterCharacterControl physicsCharacter;
     private Node characterNode;
     private CameraNode camNode;
-    boolean rotate = false;
+    private boolean rotate = false;
     private Vector3f walkDirection = new Vector3f(0, 0, 0);
     private Vector3f viewDirection = new Vector3f(0, 0, 1);
-    boolean leftStrafe = false, rightStrafe = false, forward = false, backward = false,
+    private boolean leftStrafe = false, rightStrafe = false, forward = false, backward = false,
             leftRotate = false, rightRotate = false;
     private Vector3f normalGravity = new Vector3f(0, -9.81f, 0);
     private Geometry planet;

+ 9 - 9
jme3-examples/src/main/java/jme3test/bullet/TestBrickTower.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -90,17 +90,17 @@ import com.jme3.texture.Texture.WrapMode;
  */
 public class TestBrickTower extends SimpleApplication {
 
-    int bricksPerLayer = 8;
-    int brickLayers = 30;
+    private int bricksPerLayer = 8;
+    private int brickLayers = 30;
 
-    static float brickWidth = .75f, brickHeight = .25f, brickDepth = .25f;
-    float radius = 3f;
-    float angle = 0;
+    private static float brickWidth = .75f, brickHeight = .25f, brickDepth = .25f;
+    private float radius = 3f;
+    private float angle = 0;
 
 
-    Material mat;
-    Material mat2;
-    Material mat3;
+    private Material mat;
+    private Material mat2;
+    private Material mat3;
     private Sphere bullet;
     private Box brick;
     private SphereCollisionShape bulletCollisionShape;

+ 7 - 7
jme3-examples/src/main/java/jme3test/bullet/TestBrickWall.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -61,12 +61,12 @@ import com.jme3.texture.Texture.WrapMode;
  */
 public class TestBrickWall extends SimpleApplication {
 
-    static float bLength = 0.48f;
-    static float bWidth = 0.24f;
-    static float bHeight = 0.12f;
-    Material mat;
-    Material mat2;
-    Material mat3;
+    private static float bLength = 0.48f;
+    private static float bWidth = 0.24f;
+    private static float bHeight = 0.12f;
+    private Material mat;
+    private Material mat2;
+    private Material mat3;
     private static Sphere bullet;
     private static Box brick;
     private static SphereCollisionShape bulletCollisionShape;

+ 7 - 7
jme3-examples/src/main/java/jme3test/bullet/TestHoveringTank.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -73,13 +73,13 @@ public class TestHoveringTank extends SimpleApplication implements AnalogListene
     private BulletAppState bulletAppState;
     private PhysicsHoverControl hoverControl;
     private Spatial spaceCraft;
-    TerrainQuad terrain;
-    Material matRock;
-    boolean wireframe = false;
+    private TerrainQuad terrain;
+    private Material matRock;
+    private boolean wireframe = false;
     protected BitmapText hintText;
-    PointLight pl;
-    Geometry lightMdl;
-    Geometry collisionMarker;
+    private PointLight pl;
+    private Geometry lightMdl;
+    private Geometry collisionMarker;
     /**
      * initial location of the tank (in world/physics-space coordinates)
      */

+ 8 - 8
jme3-examples/src/main/java/jme3test/bullet/TestIssue877.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 jMonkeyEngine
+ * Copyright (c) 2018-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -50,13 +50,13 @@ import com.jme3.scene.Node;
 
 public class TestIssue877 extends SimpleApplication {
 
-    BulletAppState bulletAppState = new BulletAppState();
-    int numPendulums = 6;
-    int numFalling = 6;
-    Node pivots[] = new Node[numPendulums];
-    Node bobs[] = new Node[numPendulums];
-    Node falling[] = new Node[numFalling];
-    float timeToNextPrint = 1f; // in seconds
+    private BulletAppState bulletAppState = new BulletAppState();
+    private int numPendulums = 6;
+    private int numFalling = 6;
+    private Node pivots[] = new Node[numPendulums];
+    private Node bobs[] = new Node[numPendulums];
+    private Node falling[] = new Node[numFalling];
+    private float timeToNextPrint = 1f; // in seconds
 
     public static void main(String[] args) {
         TestIssue877 app = new TestIssue877();

+ 5 - 5
jme3-examples/src/main/java/jme3test/bullet/TestIssue883.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 jMonkeyEngine
+ * Copyright (c) 2018-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -42,10 +42,10 @@ import com.jme3.bullet.PhysicsSpace;
 
 public class TestIssue883 extends SimpleApplication {
 
-    boolean firstPrint = true;
-    float timeToNextPrint = 1f; // in seconds
-    double frameTime; // in seconds
-    double physicsTime; // in seconds
+    private boolean firstPrint = true;
+    private float timeToNextPrint = 1f; // in seconds
+    private double frameTime; // in seconds
+    private double physicsTime; // in seconds
 
     public static void main(String[] args) {
         TestIssue883 app = new TestIssue883();

+ 2 - 2
jme3-examples/src/main/java/jme3test/bullet/TestKinematicAddToPhysicsSpaceIssue.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -53,7 +53,7 @@ public class TestKinematicAddToPhysicsSpaceIssue extends SimpleApplication {
         TestKinematicAddToPhysicsSpaceIssue app = new TestKinematicAddToPhysicsSpaceIssue();
         app.start();
     }
-    BulletAppState bulletAppState;
+    private BulletAppState bulletAppState;
 
     @Override
     public void simpleInitApp() {

+ 3 - 3
jme3-examples/src/main/java/jme3test/bullet/TestPhysicsCharacter.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine All rights reserved. <p/>
+ * Copyright (c) 2009-2021 jMonkeyEngine All rights reserved. <p/>
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * 
@@ -51,10 +51,10 @@ public class TestPhysicsCharacter extends SimpleApplication implements ActionLis
   private CharacterControl physicsCharacter;
   private Node characterNode;
   private CameraNode camNode;
-  boolean rotate = false;
+  private boolean rotate = false;
   private Vector3f walkDirection = new Vector3f(0,0,0);
   private Vector3f viewDirection = new Vector3f(0,0,0);
-  boolean leftStrafe = false, rightStrafe = false, forward = false, backward = false, 
+  private boolean leftStrafe = false, rightStrafe = false, forward = false, backward = false, 
           leftRotate = false, rightRotate = false;
 
   public static void main(String[] args) {

+ 22 - 22
jme3-examples/src/main/java/jme3test/bullet/TestWalkingChar.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -79,35 +79,35 @@ public class TestWalkingChar extends SimpleApplication implements ActionListener
 
     private BulletAppState bulletAppState;
     //character
-    CharacterControl character;
-    Node model;
+    private CharacterControl character;
+    private Node model;
     //temp vectors
-    Vector3f walkDirection = new Vector3f();
+    private Vector3f walkDirection = new Vector3f();
     //terrain
-    TerrainQuad terrain;
-    RigidBodyControl terrainPhysicsNode;
+    private TerrainQuad terrain;
+    private RigidBodyControl terrainPhysicsNode;
     //Materials
-    Material matRock;
-    Material matBullet;
+    private Material matRock;
+    private Material matBullet;
     //animation
-    AnimChannel animationChannel;
-    AnimChannel shootingChannel;
-    AnimControl animationControl;
-    float airTime = 0;
+    private AnimChannel animationChannel;
+    private AnimChannel shootingChannel;
+    private AnimControl animationControl;
+    private float airTime = 0;
     //camera
-    boolean left = false, right = false, up = false, down = false;
-    ChaseCamera chaseCam;
+    private boolean left = false, right = false, up = false, down = false;
+    private ChaseCamera chaseCam;
     //bullet
-    Sphere bullet;
-    SphereCollisionShape bulletCollisionShape;
+    private Sphere bullet;
+    private SphereCollisionShape bulletCollisionShape;
     //explosion
-    ParticleEmitter effect;
+    private ParticleEmitter effect;
     //brick wall
-    Box brick;
-    float bLength = 0.8f;
-    float bWidth = 0.4f;
-    float bHeight = 0.4f;
-    FilterPostProcessor fpp;
+    private Box brick;
+    private float bLength = 0.8f;
+    private float bWidth = 0.4f;
+    private float bHeight = 0.4f;
+    private FilterPostProcessor fpp;
 
     public static void main(String[] args) {
         TestWalkingChar app = new TestWalkingChar();

+ 3 - 3
jme3-examples/src/main/java/jme3test/collision/TestMousePick.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -54,8 +54,8 @@ public class TestMousePick extends SimpleApplication {
         app.start();
     }
     
-    Node shootables;
-    Geometry mark;
+    private Node shootables;
+    private Geometry mark;
 
     @Override
     public void simpleInitApp() {

+ 3 - 3
jme3-examples/src/main/java/jme3test/collision/TestTriangleCollision.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -49,9 +49,9 @@ import com.jme3.scene.shape.Box;
 
 public class TestTriangleCollision extends SimpleApplication {
 
-    Geometry geom1;
+    private Geometry geom1;
 
-    Spatial golem;
+    private Spatial golem;
 
     public static void main(String[] args) {
         TestTriangleCollision app = new TestTriangleCollision();

+ 3 - 3
jme3-examples/src/main/java/jme3test/export/TestAssetLinkNode.java

@@ -55,9 +55,9 @@ import java.util.logging.Logger;
 
 public class TestAssetLinkNode extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Spatial lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Spatial lightMdl;
 
     public static void main(String[] args){
         TestAssetLinkNode app = new TestAssetLinkNode();

+ 4 - 4
jme3-examples/src/main/java/jme3test/games/RollingTheMonkey.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2017 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -111,9 +111,9 @@ public class RollingTheMonkey extends SimpleApplication implements ActionListene
     
     private Node pickUps;
     
-    BitmapText infoText;
-    BitmapText scoreText;
-    BitmapText messageText;
+    private BitmapText infoText;
+    private BitmapText scoreText;
+    private BitmapText messageText;
     
     @Override
     public void simpleInitApp() {

+ 2 - 2
jme3-examples/src/main/java/jme3test/helloworld/HelloAnimation.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@ import com.jme3.scene.Node;
 public class HelloAnimation extends SimpleApplication
                          implements AnimEventListener {
 
-  Node player;
+  private Node player;
   private AnimChannel channel;
   private AnimControl control;
 

+ 2 - 2
jme3-examples/src/main/java/jme3test/helloworld/HelloInput.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -53,7 +53,7 @@ public class HelloInput extends SimpleApplication {
     app.start();
   }
   protected Geometry player;
-  Boolean isRunning=true;
+  private Boolean isRunning=true;
 
   @Override
   public void simpleInitApp() {

+ 4 - 4
jme3-examples/src/main/java/jme3test/helloworld/HelloPhysics.java

@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -65,9 +65,9 @@ public class HelloPhysics extends SimpleApplication {
   private BulletAppState bulletAppState;
 
   /** Prepare Materials */
-  Material wall_mat;
-  Material stone_mat;
-  Material floor_mat;
+  private Material wall_mat;
+  private Material stone_mat;
+  private Material floor_mat;
 
   /** Prepare geometries and physical nodes for bricks and cannon balls. */
   private RigidBodyControl    brick_phy;

+ 2 - 2
jme3-examples/src/main/java/jme3test/helloworld/HelloTerrain.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -45,7 +45,7 @@ import com.jme3.texture.Texture.WrapMode;
 public class HelloTerrain extends SimpleApplication {
 
   private TerrainQuad terrain;
-  Material mat_terrain;
+  private Material mat_terrain;
 
   public static void main(String[] args) {
     HelloTerrain app = new HelloTerrain();

+ 4 - 4
jme3-examples/src/main/java/jme3test/input/TestCameraNode.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine All rights reserved.
+ * Copyright (c) 2009-2021 jMonkeyEngine All rights reserved.
  * <p/>
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -51,9 +51,9 @@ public class TestCameraNode extends SimpleApplication implements AnalogListener,
 
   private Geometry teaGeom;
   private Node teaNode;
-  CameraNode camNode;
-  boolean rotate = false;
-  Vector3f direction = new Vector3f();
+  private CameraNode camNode;
+  private boolean rotate = false;
+  private Vector3f direction = new Vector3f();
 
   public static void main(String[] args) {
     TestCameraNode app = new TestCameraNode();

+ 9 - 9
jme3-examples/src/main/java/jme3test/input/TestJoystick.java

@@ -208,18 +208,18 @@ public class TestJoystick extends SimpleApplication {
 
     protected class GamepadView extends Node {
     
-        float xAxis = 0;
-        float yAxis = 0;
-        float zAxis = 0;
-        float zRotation = 0;
+        private float xAxis = 0;
+        private float yAxis = 0;
+        private float zAxis = 0;
+        private float zRotation = 0;
         
-        float lastPovX = 0;
-        float lastPovY = 0;
+        private float lastPovX = 0;
+        private float lastPovY = 0;
  
-        Geometry leftStick;
-        Geometry rightStick;
+        private Geometry leftStick;
+        private Geometry rightStick;
             
-        Map<String, ButtonView> buttons = new HashMap<String, ButtonView>();
+        private Map<String, ButtonView> buttons = new HashMap<String, ButtonView>();
     
         public GamepadView() {
             super( "gamepad" );

+ 9 - 9
jme3-examples/src/main/java/jme3test/light/TestConeVSFrustum.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -227,15 +227,15 @@ public class TestConeVSFrustum extends SimpleApplication {
         System.err.println("light " + spotLight.getPosition());
 
     }
-    Geometry boxGeo, boxGeo2;
+    private Geometry boxGeo, boxGeo2;
     private final static float MOVE_SPEED = 60;
-    Vector3f tmp = new Vector3f();
-    Quaternion tmpQuat = new Quaternion();
-    boolean moving, shift;
-    boolean panning;
-    Geometry geom;
-    SpotLight spotLight;
-    Camera frustumCam;
+    private Vector3f tmp = new Vector3f();
+    private Quaternion tmpQuat = new Quaternion();
+    private boolean moving, shift;
+    private boolean panning;
+    private Geometry geom;
+    private SpotLight spotLight;
+    private Camera frustumCam;
 
     @Override
     public void simpleUpdate(float tpf) {

+ 10 - 10
jme3-examples/src/main/java/jme3test/light/TestDirectionalLightShadow.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -161,7 +161,7 @@ public class TestDirectionalLightShadow extends SimpleApplication implements Act
 
         rootNode.attachChild(sky);
     }
-    DirectionalLight l;
+    private DirectionalLight l;
 
     @Override
     public void simpleInitApp() {
@@ -333,14 +333,14 @@ public class TestDirectionalLightShadow extends SimpleApplication implements Act
         }
 
     }
-    boolean up = false;
-    boolean down = false;
-    boolean left = false;
-    boolean right = false;
-    boolean fwd = false;
-    boolean back = false;
-    float time = 0;
-    float s = 1f;
+    private boolean up = false;
+    private boolean down = false;
+    private boolean left = false;
+    private boolean right = false;
+    private boolean fwd = false;
+    private boolean back = false;
+    private float time = 0;
+    private float s = 1f;
 
     @Override
     public void simpleUpdate(float tpf) {

+ 3 - 3
jme3-examples/src/main/java/jme3test/light/TestLightNode.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -47,8 +47,8 @@ import com.jme3.scene.shape.Torus;
 
 public class TestLightNode extends SimpleApplication {
 
-    float angle;
-    Node movingNode;
+    private float angle;
+    private Node movingNode;
 
     public static void main(String[] args){
         TestLightNode app = new TestLightNode();

+ 4 - 4
jme3-examples/src/main/java/jme3test/light/TestLightRadius.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -45,9 +45,9 @@ import com.jme3.scene.shape.Torus;
 
 public class TestLightRadius extends SimpleApplication {
 
-    float pos, vel=1;
-    PointLight pl;
-    Geometry lightMdl;
+    private float pos, vel=1;
+    private PointLight pl;
+    private Geometry lightMdl;
 
     public static void main(String[] args){
         TestLightRadius app = new TestLightRadius();

+ 9 - 9
jme3-examples/src/main/java/jme3test/light/TestManyLightsSingle.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -69,7 +69,7 @@ public class TestManyLightsSingle extends SimpleApplication {
     /**
      * Switch mode with space bar at run time
      */
-    TechniqueDef.LightMode lm = TechniqueDef.LightMode.SinglePass;
+    private TechniqueDef.LightMode lm = TechniqueDef.LightMode.SinglePass;
 
     @Override
     public void simpleInitApp() {
@@ -237,10 +237,10 @@ public class TestManyLightsSingle extends SimpleApplication {
         }
     }
 
-    BitmapText helloText;
-    long time;
-    long nbFrames;
-    long startTime = 0;
+    private BitmapText helloText;
+    private long time;
+    private long nbFrames;
+    private long startTime = 0;
 
     @Override
     public void simpleUpdate(float tpf) {
@@ -257,8 +257,8 @@ public class TestManyLightsSingle extends SimpleApplication {
 
     class MoveControl extends AbstractControl {
 
-        float direction;
-        Vector3f origPos = new Vector3f();
+        private float direction;
+        private Vector3f origPos = new Vector3f();
 
         public MoveControl(float direction) {
             this.direction = direction;
@@ -269,7 +269,7 @@ public class TestManyLightsSingle extends SimpleApplication {
             super.setSpatial(spatial); //To change body of generated methods, choose Tools | Templates.
             origPos.set(spatial.getLocalTranslation());
         }
-        float time = 0;
+        private float time = 0;
 
         @Override
         protected void controlUpdate(float tpf) {

+ 11 - 11
jme3-examples/src/main/java/jme3test/light/TestPointDirectionalAndSpotLightShadows.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -60,16 +60,16 @@ public class TestPointDirectionalAndSpotLightShadows extends SimpleApplication {
         TestPointDirectionalAndSpotLightShadows app = new TestPointDirectionalAndSpotLightShadows();
         app.start();
     }
-    Node lightNode;
-    PointLightShadowRenderer plsr;
-    PointLightShadowFilter plsf;
-    DirectionalLightShadowRenderer dlsr;
-    DirectionalLightShadowFilter dlsf;
-    SpotLightShadowRenderer slsr;
-    SpotLightShadowFilter slsf;
-    SpotLight spotLight;
+    private Node lightNode;
+    private PointLightShadowRenderer plsr;
+    private PointLightShadowFilter plsf;
+    private DirectionalLightShadowRenderer dlsr;
+    private DirectionalLightShadowFilter dlsf;
+    private SpotLightShadowRenderer slsr;
+    private SpotLightShadowFilter slsf;
+    private SpotLight spotLight;
     
-    boolean useFilter = false;
+    private boolean useFilter = false;
     
     @Override
     public void simpleInitApp() {
@@ -166,7 +166,7 @@ public class TestPointDirectionalAndSpotLightShadows extends SimpleApplication {
   
     }
 
-    float timeElapsed = 0.0f;
+    private float timeElapsed = 0.0f;
     @Override
     public void simpleUpdate(float tpf) {
         timeElapsed += tpf;

+ 5 - 5
jme3-examples/src/main/java/jme3test/light/TestPointLightShadows.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -55,10 +55,10 @@ public class TestPointLightShadows extends SimpleApplication implements ActionLi
         TestPointLightShadows app = new TestPointLightShadows();
         app.start();
     }
-    Node lightNode;
-    PointLightShadowRenderer plsr;
-    PointLightShadowFilter plsf;
-    AmbientLight al;
+    private Node lightNode;
+    private PointLightShadowRenderer plsr;
+    private PointLightShadowFilter plsf;
+    private AmbientLight al;
 
     @Override
     public void simpleInitApp () {

+ 9 - 9
jme3-examples/src/main/java/jme3test/light/TestShadowsPerf.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -54,16 +54,16 @@ import com.jme3.util.TangentBinormalGenerator;
 
 public class TestShadowsPerf extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Spatial lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Spatial lightMdl;
 
     public static void main(String[] args) {
         TestShadowsPerf app = new TestShadowsPerf();
         app.start();
     }
-    Geometry sphere;
-    Material mat;
+    private Geometry sphere;
+    private Material mat;
 
     @Override
     public void simpleInitApp() {
@@ -144,7 +144,7 @@ public class TestShadowsPerf extends SimpleApplication {
         inputManager.addMapping("display", new KeyTrigger(KeyInput.KEY_SPACE));
         inputManager.addMapping("add", new KeyTrigger(KeyInput.KEY_RETURN));
     }
-    int val = 0;
+    private int val = 0;
 
     private void createballs() {
         System.out.println((frames / time) + ";" + val);
@@ -165,8 +165,8 @@ public class TestShadowsPerf extends SimpleApplication {
         time = 0;
         frames = 0;
     }
-    float time;
-    float frames = 0;
+    private float time;
+    private float frames = 0;
 
     @Override
     public void simpleUpdate(float tpf) {

+ 4 - 4
jme3-examples/src/main/java/jme3test/light/TestSimpleLighting.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -47,9 +47,9 @@ import com.jme3.util.TangentBinormalGenerator;
 
 public class TestSimpleLighting extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Geometry lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Geometry lightMdl;
 
     public static void main(String[] args){
         TestSimpleLighting app = new TestSimpleLighting();

+ 4 - 4
jme3-examples/src/main/java/jme3test/light/TestSpotLight.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -54,8 +54,8 @@ public class TestSpotLight extends SimpleApplication {
         app.start();
     }
 
- SpotLight spot;
-    Geometry lightMdl;
+    private SpotLight spot;
+    private Geometry lightMdl;
     public void setupLighting(){
       AmbientLight al=new AmbientLight();
       al.setColor(ColorRGBA.White.mult(0.02f));
@@ -137,7 +137,7 @@ public class TestSpotLight extends SimpleApplication {
         
     }
     
-    float angle;    
+    private float angle;    
 
     @Override
     public void simpleUpdate(float tpf) {

+ 5 - 5
jme3-examples/src/main/java/jme3test/light/TestSpotLightShadows.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -59,8 +59,8 @@ public class TestSpotLightShadows extends SimpleApplication {
         TestSpotLightShadows app = new TestSpotLightShadows();
         app.start();
     }
-    SpotLight spot;
-    Geometry lightMdl;
+    private SpotLight spot;
+    private Geometry lightMdl;
 
     public void setupLighting() {
         AmbientLight al = new AmbientLight();
@@ -182,8 +182,8 @@ public class TestSpotLightShadows extends SimpleApplication {
 
 
     }
-    float angle;
-    boolean stop = true;
+    private float angle;
+    private boolean stop = true;
 
     @Override
     public void simpleUpdate(float tpf) {

+ 10 - 10
jme3-examples/src/main/java/jme3test/light/TestSpotLightTerrain.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -61,19 +61,19 @@ import com.jme3.util.SkyFactory;
 public class TestSpotLightTerrain extends SimpleApplication {
 
     private TerrainQuad terrain;
-    Material matTerrain;
-    Material matWire;
-    boolean wireframe = false;
-    boolean triPlanar = false;
-    boolean wardiso = false;
-    boolean minnaert = false;
+    private Material matTerrain;
+    private Material matWire;
+    private boolean wireframe = false;
+    private boolean triPlanar = false;
+    private boolean wardiso = false;
+    private boolean minnaert = false;
     protected BitmapText hintText;
-    PointLight pl;
-    Geometry lightMdl;
+    private PointLight pl;
+    private Geometry lightMdl;
     private float grassScale = 64;
     private float dirtScale = 16;
     private float rockScale = 128;
-    SpotLight sl;
+    private SpotLight sl;
 
     public static void main(String[] args) {
         TestSpotLightTerrain app = new TestSpotLightTerrain();

+ 4 - 4
jme3-examples/src/main/java/jme3test/light/TestTangentGen.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -53,9 +53,9 @@ import java.nio.IntBuffer;
 
 public class TestTangentGen extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Geometry lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Geometry lightMdl;
 
     public static void main(String[] args){
         TestTangentGen app = new TestTangentGen();

+ 4 - 4
jme3-examples/src/main/java/jme3test/light/TestTangentGenBadUV.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -46,9 +46,9 @@ import com.jme3.util.TangentBinormalGenerator;
 
 public class TestTangentGenBadUV extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Geometry lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Geometry lightMdl;
 
     public static void main(String[] args){
         TestTangentGenBadUV app = new TestTangentGenBadUV();

+ 4 - 4
jme3-examples/src/main/java/jme3test/light/TestTwoSideLighting.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2015 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -53,9 +53,9 @@ import com.jme3.util.TangentBinormalGenerator;
  */
 public class TestTwoSideLighting extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Geometry lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Geometry lightMdl;
 
     public static void main(String[] args){
         TestTwoSideLighting app = new TestTwoSideLighting();

+ 2 - 2
jme3-examples/src/main/java/jme3test/light/pbr/ConsoleProgressReporter.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ public class ConsoleProgressReporter extends JobProgressAdapter<LightProbe>{
 
     private static final Logger logger = Logger.getLogger(ConsoleProgressReporter.class.getName());
     
-    long time;
+    private long time;
 
     @Override
     public void start() {

+ 3 - 3
jme3-examples/src/main/java/jme3test/material/TestBumpModel.java

@@ -46,9 +46,9 @@ import com.jme3.util.TangentBinormalGenerator;
 
 public class TestBumpModel extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Spatial lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Spatial lightMdl;
 
     public static void main(String[] args){
         TestBumpModel app = new TestBumpModel();

+ 4 - 4
jme3-examples/src/main/java/jme3test/material/TestNormalMapping.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -45,9 +45,9 @@ import com.jme3.util.TangentBinormalGenerator;
 
 public class TestNormalMapping extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Spatial lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Spatial lightMdl;
 
     public static void main(String[] args){
         TestNormalMapping app = new TestNormalMapping();

+ 6 - 6
jme3-examples/src/main/java/jme3test/material/TestParallax.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2015 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -59,7 +59,7 @@ public class TestParallax extends SimpleApplication {
     public void setupSkyBox() {
         rootNode.attachChild(SkyFactory.createSky(assetManager, "Scenes/Beach/FullskiesSunset0068.dds", SkyFactory.EnvMapType.CubeMap));
     }
-    DirectionalLight dl;
+    private DirectionalLight dl;
 
     public void setupLighting() {
 
@@ -68,7 +68,7 @@ public class TestParallax extends SimpleApplication {
         dl.setColor(new ColorRGBA(.9f, .9f, .9f, 1));
         rootNode.addLight(dl);
     }
-    Material mat;
+    private Material mat;
 
     public void setupFloor() {
         mat = assetManager.loadMaterial("Textures/Terrain/BrickWall/BrickWall.j3m");
@@ -143,9 +143,9 @@ public class TestParallax extends SimpleApplication {
         }, "toggleSteep");
         inputManager.addMapping("toggleSteep", new KeyTrigger(KeyInput.KEY_SPACE));
     }
-    float parallaxHeigh = 0.05f;
-    float time = 0;
-    boolean steep = false;
+    private float parallaxHeigh = 0.05f;
+    private float time = 0;
+    private boolean steep = false;
 
     @Override
     public void simpleUpdate(float tpf) {

+ 6 - 6
jme3-examples/src/main/java/jme3test/material/TestParallaxPBR.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -59,7 +59,7 @@ public class TestParallaxPBR extends SimpleApplication {
     public void setupSkyBox() {
         rootNode.attachChild(SkyFactory.createSky(assetManager, "Scenes/Beach/FullskiesSunset0068.dds", SkyFactory.EnvMapType.CubeMap));
     }
-    DirectionalLight dl;
+    private DirectionalLight dl;
 
     public void setupLighting() {
 
@@ -68,7 +68,7 @@ public class TestParallaxPBR extends SimpleApplication {
         dl.setColor(new ColorRGBA(.9f, .9f, .9f, 1));
         rootNode.addLight(dl);
     }
-    Material mat;
+    private Material mat;
 
     public void setupFloor() {
         mat = assetManager.loadMaterial("Textures/Terrain/BrickWall/BrickWallPBR.j3m");
@@ -145,9 +145,9 @@ public class TestParallaxPBR extends SimpleApplication {
         }, "toggleSteep");
         inputManager.addMapping("toggleSteep", new KeyTrigger(KeyInput.KEY_SPACE));
     }
-    float parallaxHeigh = 0.05f;
-    float time = 0;
-    boolean steep = false;
+    private float parallaxHeigh = 0.05f;
+    private float time = 0;
+    private boolean steep = false;
 
     @Override
     public void simpleUpdate(float tpf) {

+ 4 - 4
jme3-examples/src/main/java/jme3test/material/TestSimpleBumps.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -47,9 +47,9 @@ import com.jme3.util.TangentBinormalGenerator;
 // phong cutoff for light to normal angle > 90?
 public class TestSimpleBumps extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Spatial lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Spatial lightMdl;
 
     public static void main(String[] args){
         TestSimpleBumps app = new TestSimpleBumps();

+ 2 - 2
jme3-examples/src/main/java/jme3test/material/TestTessellationShader.java

@@ -18,8 +18,8 @@ import java.util.concurrent.Callable;
  * Created by michael on 28.02.15.
  */
 public class TestTessellationShader extends SimpleApplication {
-    Material tessellationMaterial;
-    int tessFactor=5;
+    private Material tessellationMaterial;
+    private int tessFactor=5;
     @Override
     public void simpleInitApp() {
         tessellationMaterial = new Material(getAssetManager(), "Materials/Tess/SimpleTess.j3md");

+ 13 - 13
jme3-examples/src/main/java/jme3test/model/TestGltfLoading.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -50,18 +50,18 @@ import java.util.*;
 
 public class TestGltfLoading extends SimpleApplication {
 
-    Node autoRotate = new Node("autoRotate");
-    List<Spatial> assets = new ArrayList<>();
-    Node probeNode;
-    float time = 0;
-    int assetIndex = 0;
-    boolean useAutoRotate = false;
+    private Node autoRotate = new Node("autoRotate");
+    private List<Spatial> assets = new ArrayList<>();
+    private Node probeNode;
+    private float time = 0;
+    private int assetIndex = 0;
+    private boolean useAutoRotate = false;
     private final static String indentString = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
-    int duration = 1;
-    boolean playAnim = true;
+    private int duration = 1;
+    private boolean playAnim = true;
 
-    Geometry g;
-    int morphIndex = 0;
+    private Geometry g;
+    private int morphIndex = 0;
 
 
     public static void main(String[] args) {
@@ -264,8 +264,8 @@ public class TestGltfLoading extends SimpleApplication {
 
     }
 
-    Queue<String> anims = new LinkedList<>();
-    AnimComposer composer;
+    private Queue<String> anims = new LinkedList<>();
+    private AnimComposer composer;
 
     private void playFirstAnim(Spatial s) {
 

+ 4 - 4
jme3-examples/src/main/java/jme3test/model/TestMonkeyHead.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -44,9 +44,9 @@ import com.jme3.scene.shape.Sphere;
 
 public class TestMonkeyHead extends SimpleApplication {
 
-    float angle;
-    PointLight pl;
-    Spatial lightMdl;
+    private float angle;
+    private PointLight pl;
+    private Spatial lightMdl;
 
     public static void main(String[] args){
         TestMonkeyHead app = new TestMonkeyHead();

+ 7 - 7
jme3-examples/src/main/java/jme3test/model/TestOgreLoading.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -43,12 +43,12 @@ import com.jme3.scene.shape.Sphere;
 
 public class TestOgreLoading extends SimpleApplication {
 
-    float angle1;
-    float angle2;
-    PointLight pl;
-    PointLight p2;
-    Spatial lightMdl;
-    Spatial lightMd2;
+    private float angle1;
+    private float angle2;
+    private PointLight pl;
+    private PointLight p2;
+    private Spatial lightMdl;
+    private Spatial lightMd2;
 
     public static void main(String[] args) {
         TestOgreLoading app = new TestOgreLoading();

+ 6 - 6
jme3-examples/src/main/java/jme3test/model/anim/TestAnimMigration.java

@@ -24,12 +24,12 @@ import java.util.LinkedList;
  */
 public class TestAnimMigration extends SimpleApplication {
 
-    ArmatureDebugAppState debugAppState;
-    AnimComposer composer;
-    LinkedList<String> anims = new LinkedList<>();
-    boolean playAnim = false;
-    BlendAction action;
-    float blendValue = 1f;
+    private ArmatureDebugAppState debugAppState;
+    private AnimComposer composer;
+    private LinkedList<String> anims = new LinkedList<>();
+    private boolean playAnim = false;
+    private BlendAction action;
+    private float blendValue = 1f;
 
     public static void main(String... argv) {
         TestAnimMigration app = new TestAnimMigration();

+ 5 - 5
jme3-examples/src/main/java/jme3test/model/anim/TestAnimMorphSerialization.java

@@ -24,11 +24,11 @@ import java.util.Queue;
  */
 public class TestAnimMorphSerialization extends SimpleApplication {
 
-    ArmatureDebugAppState debugAppState;
-    AnimComposer composer;
-    Queue<String> anims = new LinkedList<>();
-    boolean playAnim = true;
-    File file;
+    private ArmatureDebugAppState debugAppState;
+    private AnimComposer composer;
+    private Queue<String> anims = new LinkedList<>();
+    private boolean playAnim = true;
+    private File file;
 
     public static void main(String... argv) {
         TestAnimMorphSerialization app = new TestAnimMorphSerialization();

+ 5 - 5
jme3-examples/src/main/java/jme3test/model/anim/TestAnimSerialization.java

@@ -28,11 +28,11 @@ import java.util.Queue;
  */
 public class TestAnimSerialization extends SimpleApplication {
 
-    ArmatureDebugAppState debugAppState;
-    AnimComposer composer;
-    Queue<String> anims = new LinkedList<>();
-    boolean playAnim = true;
-    File file;
+    private ArmatureDebugAppState debugAppState;
+    private AnimComposer composer;
+    private Queue<String> anims = new LinkedList<>();
+    private boolean playAnim = true;
+    private File file;
 
     public static void main(String... argv) {
         TestAnimSerialization app = new TestAnimSerialization();

+ 2 - 2
jme3-examples/src/main/java/jme3test/model/anim/TestArmature.java

@@ -21,8 +21,8 @@ import java.nio.ShortBuffer;
  */
 public class TestArmature extends SimpleApplication {
 
-    Joint j1;
-    Joint j2;
+    private Joint j1;
+    private Joint j2;
 
     public static void main(String... argv) {
         TestArmature app = new TestArmature();

+ 5 - 5
jme3-examples/src/main/java/jme3test/model/anim/TestBaseAnimSerialization.java

@@ -25,11 +25,11 @@ import java.nio.ShortBuffer;
  */
 public class TestBaseAnimSerialization extends SimpleApplication {
 
-    Joint j1;
-    Joint j2;
-    AnimComposer composer;
-    Armature armature;
-    File file;
+    private Joint j1;
+    private Joint j2;
+    private AnimComposer composer;
+    private Armature armature;
+    private File file;
 
     public static void main(String... argv) {
         TestBaseAnimSerialization app = new TestBaseAnimSerialization();

+ 1 - 1
jme3-examples/src/main/java/jme3test/model/anim/TestMorph.java

@@ -21,7 +21,7 @@ import java.nio.FloatBuffer;
 
 public class TestMorph extends SimpleApplication {
 
-    float[] weights = new float[2];
+    private float[] weights = new float[2];
 
     public static void main(String... args) {
         TestMorph app = new TestMorph();

+ 3 - 3
jme3-examples/src/main/java/jme3test/model/shape/TestBillboard.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -94,8 +94,8 @@ public class TestBillboard extends SimpleApplication {
 //        rootNode.attachChild(bb);
 //        rootNode.attachChild(g2);
     }
- Node n;
- Node n2;
+    private Node n;
+    private Node n2;
     @Override
     public void simpleUpdate(float tpf) {
         super.simpleUpdate(tpf);

+ 3 - 3
jme3-examples/src/main/java/jme3test/network/TestLatency.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -54,8 +54,8 @@ public class TestLatency {
     @Serializable
     public static class TimestampMessage extends AbstractMessage {
 
-        long timeSent     = 0;
-        long timeReceived = 0;
+        private long timeSent     = 0;
+        private long timeReceived = 0;
 
         public TimestampMessage(){
             setReliable(false);

+ 15 - 15
jme3-examples/src/main/java/jme3test/network/TestSerialization.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -71,23 +71,23 @@ public class TestSerialization implements MessageListener<HostedConnection> {
     @Serializable
     public static class TestSerializationMessage extends AbstractMessage {
 
-        boolean z;
-        byte b;
-        char c;
-        short s;
-        int i;
-        float f;
-        long l;
-        double d;
+        private boolean z;
+        private byte b;
+        private char c;
+        private short s;
+        private int i;
+        private float f;
+        private long l;
+        private double d;
         
-        int[] ia;
-        List<Object> ls;
-        Map<String, SomeObject> mp;
+        private int[] ia;
+        private List<Object> ls;
+        private Map<String, SomeObject> mp;
 
-        Status status1;
-        Status status2;
+        private Status status1;
+        private Status status2;
 
-        Date date;
+        private Date date;
 
         public TestSerializationMessage(){
             super(true);

+ 2 - 2
jme3-examples/src/main/java/jme3test/post/SSAOUI.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ import com.jme3.post.ssao.SSAOFilter;
  */
 public class SSAOUI {
 
-    SSAOFilter filter;
+    private SSAOFilter filter;
 
     public SSAOUI(InputManager inputManager, SSAOFilter filter) {
         this.filter = filter;

+ 8 - 8
jme3-examples/src/main/java/jme3test/post/TestBloom.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -53,13 +53,13 @@ import com.jme3.util.SkyFactory.EnvMapType;
 
 public class TestBloom extends SimpleApplication {
 
-    float angle;
-    Spatial lightMdl;
-    Spatial teapot;
-    Geometry frustumMdl;
-    WireFrustum frustum;
-    boolean active=true;
-    FilterPostProcessor fpp;
+    private float angle;
+    private Spatial lightMdl;
+    private Spatial teapot;
+    private Geometry frustumMdl;
+    private WireFrustum frustum;
+    private boolean active=true;
+    private FilterPostProcessor fpp;
     
     public static void main(String[] args){
         TestBloom app = new TestBloom();

+ 8 - 8
jme3-examples/src/main/java/jme3test/post/TestBloomAlphaThreshold.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2015 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -56,13 +56,13 @@ import com.jme3.util.SkyFactory.EnvMapType;
 public class TestBloomAlphaThreshold extends SimpleApplication
 {
 
-	float angle;
-	Spatial lightMdl;
-	Spatial teapot;
-	Geometry frustumMdl;
-	WireFrustum frustum;
-	boolean active = true;
-	FilterPostProcessor fpp;
+	private float angle;
+	private Spatial lightMdl;
+	private Spatial teapot;
+	private Geometry frustumMdl;
+	private WireFrustum frustum;
+	private boolean active = true;
+	private FilterPostProcessor fpp;
 
 	public static void main(String[] args)
 	{

+ 8 - 8
jme3-examples/src/main/java/jme3test/post/TestCrossHatch.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -53,13 +53,13 @@ import com.jme3.util.SkyFactory.EnvMapType;
 
 public class TestCrossHatch extends SimpleApplication {
 
-    float angle;
-    Spatial lightMdl;
-    Spatial teapot;
-    Geometry frustumMdl;
-    WireFrustum frustum;
-    boolean active=true;
-    FilterPostProcessor fpp;
+    private float angle;
+    private Spatial lightMdl;
+    private Spatial teapot;
+    private Geometry frustumMdl;
+    private WireFrustum frustum;
+    private boolean active=true;
+    private FilterPostProcessor fpp;
     
     public static void main(String[] args){
         TestCrossHatch app = new TestCrossHatch();

+ 3 - 3
jme3-examples/src/main/java/jme3test/post/TestDepthOfField.java

@@ -33,9 +33,9 @@ public class TestDepthOfField extends SimpleApplication {
 
     private FilterPostProcessor fpp;
     private Vector3f lightDir = new Vector3f(-4.9236743f, -1.27054665f, 5.896916f);
-    TerrainQuad terrain;
-    Material matRock;
-    DepthOfFieldFilter dofFilter;
+    private TerrainQuad terrain;
+    private Material matRock;
+    private DepthOfFieldFilter dofFilter;
 
     public static void main(String[] args) {
         TestDepthOfField app = new TestDepthOfField();

+ 4 - 4
jme3-examples/src/main/java/jme3test/post/TestMultiplesFilters.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -58,9 +58,9 @@ public class TestMultiplesFilters extends SimpleApplication {
         TestMultiplesFilters app = new TestMultiplesFilters();
         app.start();
     }
-    SSAOFilter ssaoFilter;
-    FilterPostProcessor fpp;
-    boolean en = true;
+    private SSAOFilter ssaoFilter;
+    private FilterPostProcessor fpp;
+    private boolean en = true;
 
     @Override
     public void simpleInitApp() {

+ 2 - 2
jme3-examples/src/main/java/jme3test/post/TestPostFilters.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -54,7 +54,7 @@ public class TestPostFilters extends SimpleApplication implements ActionListener
 
     private FilterPostProcessor fpp;
     private Vector3f lightDir = new Vector3f(-1, -1, .5f).normalizeLocal();
-    FadeFilter fade;
+    private FadeFilter fade;
 
     public static void main(String[] args) {
         TestPostFilters app = new TestPostFilters();

+ 3 - 3
jme3-examples/src/main/java/jme3test/post/TestPosterization.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -51,8 +51,8 @@ import com.jme3.util.SkyFactory;
 
 public class TestPosterization extends SimpleApplication {
 
-    Spatial teapot;
-    PosterizationFilter pf;
+    private Spatial teapot;
+    private PosterizationFilter pf;
     
     public static void main(String[] args){
         TestPosterization app = new TestPosterization();

+ 2 - 2
jme3-examples/src/main/java/jme3test/post/TestSSAO.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -45,7 +45,7 @@ import com.jme3.texture.Texture;
 
 public class TestSSAO extends SimpleApplication {
 
-    Geometry model;
+    private Geometry model;
 
     public static void main(String[] args) {
         TestSSAO app = new TestSSAO();

+ 2 - 2
jme3-examples/src/main/java/jme3test/post/TestSSAO2.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -43,7 +43,7 @@ import com.jme3.scene.shape.Box;
 
 public class TestSSAO2 extends SimpleApplication {
 
-    Geometry model;
+    private Geometry model;
 
     public static void main(String[] args) {
         TestSSAO2 app = new TestSSAO2();

+ 6 - 6
jme3-examples/src/main/java/jme3test/renderer/TestSplitScreen.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2017 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -50,11 +50,11 @@ import com.jme3.scene.shape.Box;
  */
 public class TestSplitScreen extends SimpleApplication implements ActionListener {
 
-    boolean splitScreen = false;
-    Box mesh = new Box(1f, 1f, 1f);
-    Camera leftCam, rightCam;
-    Node leftScene = new Node("left scene");
-    ViewPort leftView, rightView;
+    private boolean splitScreen = false;
+    private Box mesh = new Box(1f, 1f, 1f);
+    private Camera leftCam, rightCam;
+    private Node leftScene = new Node("left scene");
+    private ViewPort leftView, rightView;
 
     @Override
     public void simpleInitApp() {

+ 2 - 2
jme3-examples/src/main/java/jme3test/scene/instancing/TestInstanceNodeWithLight.java

@@ -18,8 +18,8 @@ public class TestInstanceNodeWithLight extends SimpleApplication {
         app.start();
     }
 
-    Geometry box;
-    PointLight pointLight;
+    private Geometry box;
+    private PointLight pointLight;
 
     @Override
     public void simpleInitApp() {

+ 3 - 3
jme3-examples/src/main/java/jme3test/stress/TestLodGeneration.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -57,8 +57,8 @@ public class TestLodGeneration extends SimpleApplication {
         TestLodGeneration app = new TestLodGeneration();
         app.start();
     }
-    boolean wireFrame = false;
-    float reductionvalue = 0.0f;
+    private boolean wireFrame = false;
+    private float reductionvalue = 0.0f;
     private int lodLevel = 0;
     private Node model;
     private BitmapText hudText;

+ 2 - 2
jme3-examples/src/main/java/jme3test/stress/TestParallelTangentGeneration.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2015 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -41,7 +41,7 @@ import com.jme3.util.TangentBinormalGenerator;
 
 public class TestParallelTangentGeneration {
 
-    static ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
+    private static ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
 
     public static void main(String[] args) {
 

+ 1 - 1
jme3-examples/src/main/java/jme3test/terrain/TerrainGridAlphaMapTest.java

@@ -223,7 +223,7 @@ public class TerrainGridAlphaMapTest extends SimpleApplication {
         createMarkerPoints(1);
     }
     
-    Node markers;
+    private Node markers;
     
     
     private void createMarkerPoints(float count) {

+ 7 - 7
jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -73,13 +73,13 @@ import com.jme3.texture.Texture.WrapMode;
 public class TerrainTest extends SimpleApplication {
 
     private TerrainQuad terrain;
-    Material matRock;
-    Material matWire;
-    boolean wireframe = false;
-    boolean triPlanar = false;
+    private Material matRock;
+    private Material matWire;
+    private boolean wireframe = false;
+    private boolean triPlanar = false;
     protected BitmapText hintText;
-    PointLight pl;
-    Geometry lightMdl;
+    private PointLight pl;
+    private Geometry lightMdl;
     private float grassScale = 64;
     private float dirtScale = 16;
     private float rockScale = 128;

+ 9 - 9
jme3-examples/src/main/java/jme3test/terrain/TerrainTestAdvanced.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -64,15 +64,15 @@ import com.jme3.util.SkyFactory;
 public class TerrainTestAdvanced extends SimpleApplication {
 
     private TerrainQuad terrain;
-    Material matTerrain;
-    Material matWire;
-    boolean wireframe = false;
-    boolean triPlanar = false;
-    boolean wardiso = false;
-    boolean minnaert = false;
+    private Material matTerrain;
+    private Material matWire;
+    private boolean wireframe = false;
+    private boolean triPlanar = false;
+    private boolean wardiso = false;
+    private boolean minnaert = false;
     protected BitmapText hintText;
-    PointLight pl;
-    Geometry lightMdl;
+    private PointLight pl;
+    private Geometry lightMdl;
     private float dirtScale = 16;
     private float darkRockScale = 32;
     private float pinkRockScale = 32;

+ 7 - 7
jme3-examples/src/main/java/jme3test/terrain/TerrainTestAndroid.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -61,13 +61,13 @@ import com.jme3.texture.Texture.WrapMode;
 public class TerrainTestAndroid extends SimpleApplication {
 
     private TerrainQuad terrain;
-    Material matRock;
-    Material matWire;
-    boolean wireframe = false;
-    boolean triPlanar = false;
+    private Material matRock;
+    private Material matWire;
+    private boolean wireframe = false;
+    private boolean triPlanar = false;
     protected BitmapText hintText;
-    PointLight pl;
-    Geometry lightMdl;
+    private PointLight pl;
+    private Geometry lightMdl;
     private float grassScale = 64;
     private float dirtScale = 16;
     private float rockScale = 128;

+ 12 - 12
jme3-examples/src/main/java/jme3test/terrain/TerrainTestCollision.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -78,19 +78,19 @@ import java.util.List;
  */
 public class TerrainTestCollision extends SimpleApplication {
 
-    TerrainQuad terrain;
-    Node terrainPhysicsNode;
-    Material matRock;
-    Material matWire;
-    boolean wireframe = false;
+    private TerrainQuad terrain;
+    private Node terrainPhysicsNode;
+    private Material matRock;
+    private Material matWire;
+    private boolean wireframe = false;
     protected BitmapText hintText;
-    PointLight pl;
-    Geometry lightMdl;
-    List<Geometry> collisionMarkers;
+    private PointLight pl;
+    private Geometry lightMdl;
+    private List<Geometry> collisionMarkers;
     private BulletAppState bulletAppState;
-    Geometry collisionSphere;
-    Geometry collisionBox;
-    Geometry selectedCollisionObject;
+    private Geometry collisionSphere;
+    private Geometry collisionBox;
+    private Geometry selectedCollisionObject;
 
     public static void main(String[] args) {
         TerrainTestCollision app = new TerrainTestCollision();

+ 7 - 7
jme3-examples/src/main/java/jme3test/terrain/TerrainTestModifyHeight.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -79,12 +79,12 @@ import java.util.List;
 public class TerrainTestModifyHeight extends SimpleApplication {
 
     private TerrainQuad terrain;
-    Material matTerrain;
-    Material matWire;
-    boolean wireframe = false;
-    boolean triPlanar = false;
-    boolean wardiso = false;
-    boolean minnaert = false;
+    private Material matTerrain;
+    private Material matWire;
+    private boolean wireframe = false;
+    private boolean triPlanar = false;
+    private boolean wardiso = false;
+    private boolean minnaert = false;
     protected BitmapText hintText;
     private float grassScale = 64;
     private float dirtScale = 16;

+ 7 - 7
jme3-examples/src/main/java/jme3test/terrain/TerrainTestTile.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -66,12 +66,12 @@ import java.util.List;
 public class TerrainTestTile extends SimpleApplication {
 
     private TiledTerrain terrain;
-    Material matTerrain;
-    Material matWire;
-    boolean wireframe = false;
-    boolean triPlanar = false;
-    boolean wardiso = false;
-    boolean minnaert = false;
+    private Material matTerrain;
+    private Material matWire;
+    private boolean wireframe = false;
+    private boolean triPlanar = false;
+    private boolean wardiso = false;
+    private boolean minnaert = false;
     protected BitmapText hintText;
     private float grassScale = 256;
     

+ 7 - 7
jme3-examples/src/main/java/jme3test/water/TestPostWater.java

@@ -50,12 +50,12 @@ public class TestPostWater extends SimpleApplication {
 
     private Vector3f lightDir = new Vector3f(-4.9236743f, -1.27054665f, 5.896916f);
     private WaterFilter water;
-    TerrainQuad terrain;
-    Material matRock;
-    AudioNode waves;
-    LowPassFilter underWaterAudioFilter = new LowPassFilter(0.5f, 0.1f);
-    LowPassFilter underWaterReverbFilter = new LowPassFilter(0.5f, 0.1f);
-    LowPassFilter aboveWaterAudioFilter = new LowPassFilter(1, 1);
+    private TerrainQuad terrain;
+    private Material matRock;
+    private AudioNode waves;
+    private LowPassFilter underWaterAudioFilter = new LowPassFilter(0.5f, 0.1f);
+    private LowPassFilter underWaterReverbFilter = new LowPassFilter(0.5f, 0.1f);
+    private LowPassFilter aboveWaterAudioFilter = new LowPassFilter(1, 1);
 
     public static void main(String[] args) {
         TestPostWater app = new TestPostWater();
@@ -198,7 +198,7 @@ public class TestPostWater extends SimpleApplication {
 //        createBox();
 //        createFire();
     }
-    Geometry box;
+    private Geometry box;
 
     private void createBox() {
         //creating a transluscent box

+ 7 - 7
jme3-examples/src/main/java/jme3test/water/TestSimpleWater.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -52,12 +52,12 @@ import com.jme3.water.SimpleWaterProcessor;
  */
 public class TestSimpleWater extends SimpleApplication implements ActionListener {
 
-    Material mat;
-    Spatial waterPlane;
-    Geometry lightSphere;
-    SimpleWaterProcessor waterProcessor;
-    Node sceneNode;
-    boolean useWater = true;
+    private Material mat;
+    private Spatial waterPlane;
+    private Geometry lightSphere;
+    private SimpleWaterProcessor waterProcessor;
+    private Node sceneNode;
+    private boolean useWater = true;
     private Vector3f lightPos =  new Vector3f(33,12,-29);