Skip to content

Commit 1c9aef5

Browse files
committed
updated to java 8
1 parent b756fcc commit 1c9aef5

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

.classpath

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry excluding="file/reporting/CfEvaluator.java|processing/CfCalculator.java|processing/CfTagCalculator.java|processing/LdaCalculator.java|file/filtering/ResourceFiltering.java|file/filtering/TagFiltering.java|processing/MahoutCalculator.java" kind="src" path="src"/>
4-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
5-
<classpathentry kind="lib" path="lib/opencsv-2.3.jar"/>
6-
<classpathentry kind="lib" path="lib/commons-lang3-3.1.jar"/>
7-
<classpathentry kind="lib" path="lib/guava-14.0-rc1.jar"/>
8-
<classpathentry kind="lib" path="lib/mallet-deps.jar"/>
9-
<classpathentry kind="lib" path="lib/mallet.jar"/>
10-
<classpathentry kind="lib" path="lib/javaml-0.1.5.jar"/>
4+
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
5+
<classpathentry exported="true" kind="lib" path="lib/opencsv-2.3.jar"/>
6+
<classpathentry exported="true" kind="lib" path="lib/commons-lang3-3.1.jar"/>
7+
<classpathentry exported="true" kind="lib" path="lib/guava-14.0-rc1.jar"/>
8+
<classpathentry exported="true" kind="lib" path="lib/mallet-deps.jar"/>
9+
<classpathentry exported="true" kind="lib" path="lib/mallet.jar"/>
10+
<classpathentry exported="true" kind="lib" path="lib/javaml-0.1.5.jar"/>
1111
<classpathentry kind="output" path="bin"/>
1212
</classpath>
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
eclipse.preferences.version=1
22
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3+
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
45
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5-
org.eclipse.jdt.core.compiler.compliance=1.7
6+
org.eclipse.jdt.core.compiler.compliance=1.8
67
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
78
org.eclipse.jdt.core.compiler.debug.localVariable=generate
89
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
910
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
1011
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11-
org.eclipse.jdt.core.compiler.source=1.7
12+
org.eclipse.jdt.core.compiler.source=1.8

src/engine/CFResourceRecommenderEngine.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public synchronized Map<String, Double> getEntitiesWithLikelihood(String user, S
6464
}
6565
Map<String, Double> resourceMap = new LinkedHashMap<>();
6666
if (this.reader == null || this.calculator == null) {
67+
System.out.println("No data has been loaded");
6768
return resourceMap;
6869
}
6970
int userID = -1;

src/engine/ResourceEngineInterface.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ License, or (at your option) any later version.
2525

2626
public interface ResourceEngineInterface {
2727

28-
public void loadFile(String filename) throws Exception;
28+
void loadFile(String filename) throws Exception;
2929

30-
public Map<String, Double> getEntitiesWithLikelihood(String user, String resource, List<String> topics, Integer count, Boolean filterOwnEntities);
30+
Map<String, Double> getEntitiesWithLikelihood(String user, String resource, List<String> topics, Integer count, Boolean filterOwnEntities);
3131
}

src/test/Pipeline.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static void main(String[] args) {
168168
}
169169
System.out.println("TagRec with Topics: " + tagrecEngine.getEntitiesWithLikelihood("41", "545", Arrays.asList("ontology", "conference", "tutorial", "web2.0", "rss", "tools"), 10));
170170
System.out.println("TagRec without Topics: " + tagrecEngine.getEntitiesWithLikelihood("41", "545", null, 10));
171-
ResourceEngineInterface resrecEngine = new CFResourceRecommenderEngine();
171+
final ResourceEngineInterface resrecEngine = new CFResourceRecommenderEngine();
172172
try {
173173
resrecEngine.loadFile(path);
174174
} catch (Exception e2) {
@@ -178,7 +178,6 @@ public static void main(String[] args) {
178178
System.out.println("CF -Filter: " + resrecEngine.getEntitiesWithLikelihood("0", null, null, 20, false));
179179
*/
180180

181-
182181
// Commandline Arguments
183182
if (args.length < 3) {
184183
System.out.println("Too few arguments!");

tagrec.jar

2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)