// Path: 2019/10-IFDS/Exercise/test/util/Logger.java
// public static void log(String message) {
// 		
// }
// 
// Path: 2019/10-IFDS/Exercise/test/util/User.java
// public class User {
// 
// 	public String getName() {
// 		return null;
// 	}
// }


import static util.Logger.log;
import util.User;
package tests;


public class MultipleInstanceFields {

	public static void noncompliant(User user) {
		String name = user.getName();
		DataStructure ds1 = new DataStructure();
		ds1.str = name;
		
		DataStructure ds2 = new DataStructure();
		ds2.rec = ds1;
		
		DataStructure ds3 = ds2.rec;
// Path: 2019/10-IFDS/Exercise/test/util/Logger.java
// public static void log(String message) {
// 		
// }
// 
// Path: 2019/10-IFDS/Exercise/test/util/User.java
// public class User {
// 
// 	public String getName() {
// 		return null;
// 	}
// }


// Path: 2019/10-IFDS/Exercise/test/tests/MultipleInstanceFields.java
import static util.Logger.log;
import util.User;

package tests;


public class MultipleInstanceFields {

	public static void noncompliant(User user) {
		String name = user.getName();
		DataStructure ds1 = new DataStructure();
		ds1.str = name;
		
		DataStructure ds2 = new DataStructure();
		ds2.rec = ds1;
		
		DataStructure ds3 = ds2.rec;
		log(ds3.str);