set instance variables to private
authorMichael <Michael@Michael-LT.bfh.ch>
Wed, 18 Nov 2015 10:03:16 +0000 (11:03 +0100)
committerMichael <Michael@Michael-LT.bfh.ch>
Wed, 18 Nov 2015 10:03:16 +0000 (11:03 +0100)
src/main/java/ch/bfh/ti/srs/controller/UserController.java
src/main/java/ch/bfh/ti/srs/datahandler/DataHandlerForTests.java
src/main/java/ch/bfh/ti/srs/noTest/DataHandlerForExcel.java

index f97f1de..01cc0f5 100644 (file)
@@ -17,8 +17,8 @@ import ch.bfh.ti.srs.dataschema.User;
  */\r
 public class UserController {\r
        final String filePath = "test.xls";\r
-       User currentUser;\r
-       DataHandler dh;\r
+       private User currentUser;\r
+       private DataHandler dh;\r
        \r
        public UserController(){\r
        }\r
index 97d088a..911bc74 100644 (file)
@@ -19,9 +19,9 @@ import ch.bfh.ti.srs.dataschema.Resource;
 import ch.bfh.ti.srs.dataschema.User;
 
 public class DataHandlerForTests implements DataHandler {
-       Set<User> userList = new HashSet<User>();
-       Set<Resource> resourceList = new HashSet<Resource>();
-       Set<Reservation> reservationList = new HashSet<Reservation>();
+       private Set<User> userList = new HashSet<User>();
+       private Set<Resource> resourceList = new HashSet<Resource>();
+       private Set<Reservation> reservationList = new HashSet<Reservation>();
 
        public DataHandlerForTests() {
 
index 0addfbb..e751ccb 100644 (file)
@@ -19,8 +19,8 @@ import ch.bfh.ti.srs.dataschema.User;
  * @author Michael Grossen
  */
 public class DataHandlerForExcel implements DataHandler {
-       String filePath;
-       Set<User> userList = new HashSet<User>();
+       private String filePath;
+       private Set<User> userList = new HashSet<User>();
 
        static {
                try {