Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (19 loc) · 656 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 656 Bytes

Pilot Project for Anti-Patterns in Multi-Language Systems

Java & C (JNI)

Information about some files

  • config.properties: values of the parameters of code smells and antipatterns
  • JNILIB.dll: library with all C functions

How to use config.properties in a Java class

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

	
	try {
        	Properties props = new Properties();
			props.load(new FileInputStream("../MLS SAD/rsc/config.properties"));
			int aProp = Integer.parseInt(props.getProperty("SomeCodeSmell.Param"));
		} catch (IOException e) {
			e.printStackTrace();
		}

}