Skip to content

Commit 5a8c514

Browse files
committed
Add missing @deprecated annotations
1 parent f838e43 commit 5a8c514

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

src/main/java/de/bwaldvogel/liblinear/Linear.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ public static Model loadModel(Reader inputReader) throws IOException {
401401
*
402402
* @deprecated use {@link Linear#loadModel(Path)} instead
403403
*/
404+
@Deprecated
404405
public static Model loadModel(File modelFile) throws IOException {
405406
return loadModel(modelFile.toPath());
406407
}
@@ -580,6 +581,7 @@ public static void saveModel(Writer modelOutput, Model model) throws IOException
580581
*
581582
* @deprecated use {@link Linear#saveModel(Path, Model)} instead
582583
*/
584+
@Deprecated
583585
public static void saveModel(File modelFile, Model model) throws IOException {
584586
saveModel(modelFile.toPath(), model);
585587
}
@@ -2536,6 +2538,7 @@ public static int getVersion() {
25362538
*
25372539
* @deprecated Use {@link Parameter#setRandom(Random)} instead
25382540
*/
2541+
@Deprecated
25392542
public static void resetRandom() {
25402543
}
25412544
}

src/main/java/de/bwaldvogel/liblinear/Model.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ private static int arrayHashCode(double[] w) {
254254
/**
255255
* @deprecated use {@link Model#save(Path)} instead
256256
*/
257+
@Deprecated
257258
public void save(File modelFile) throws IOException {
258259
save(modelFile.toPath());
259260
}
@@ -275,6 +276,7 @@ public void save(Writer writer) throws IOException {
275276
/**
276277
* @deprecated use {@link Model#load(Path)} instead
277278
*/
279+
@Deprecated
278280
public static Model load(File modelFile) throws IOException {
279281
return load(modelFile.toPath());
280282
}

src/main/java/de/bwaldvogel/liblinear/Problem.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class Problem {
5757
/**
5858
* @deprecated use {@link Problem#readFromFile(Path, double)} instead
5959
*/
60+
@Deprecated
6061
public static Problem readFromFile(File file, double bias) throws IOException, InvalidInputDataException {
6162
return readFromFile(file.toPath(), bias);
6263
}
@@ -71,6 +72,7 @@ public static Problem readFromFile(Path path, double bias) throws IOException, I
7172
/**
7273
* @deprecated use {@link Problem#readFromFile(Path, Charset, double)} instead
7374
*/
75+
@Deprecated
7476
public static Problem readFromFile(File file, Charset charset, double bias) throws IOException, InvalidInputDataException {
7577
return readFromFile(file.toPath(), charset, bias);
7678
}

src/main/java/de/bwaldvogel/liblinear/Train.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ public void parse_command_line(String argv[]) {
287287
* @throws InvalidInputDataException if the input file is not correctly formatted
288288
* @deprecated use {@link Train#readProblem(Path, double)} instead
289289
*/
290+
@Deprecated
290291
public static Problem readProblem(File file, double bias) throws IOException, InvalidInputDataException {
291292
return readProblem(file.toPath(), bias);
292293
}
@@ -305,6 +306,7 @@ public static Problem readProblem(Path path, double bias) throws IOException, In
305306
/**
306307
* @deprecated use {@link Train#readProblem(Path, Charset, double)} instead
307308
*/
309+
@Deprecated
308310
public static Problem readProblem(File file, Charset charset, double bias) throws IOException, InvalidInputDataException {
309311
return readProblem(file.toPath(), charset, bias);
310312
}

0 commit comments

Comments
 (0)