Remove methods deprecated in Emu
Change-Id: I860dbc9fba32014a1239cacbd92e5d747e7ad191
Showing
2 changed files
with
0 additions
and
43 deletions
... | @@ -43,19 +43,6 @@ public final class Row { | ... | @@ -43,19 +43,6 @@ public final class Row { |
43 | * Row constructor. | 43 | * Row constructor. |
44 | * | 44 | * |
45 | * @param tableName table name | 45 | * @param tableName table name |
46 | - * @deprecated in Emu Release | ||
47 | - */ | ||
48 | - @Deprecated | ||
49 | - private Row(String tableName) { | ||
50 | - checkNotNull(tableName, "tableName cannot be null"); | ||
51 | - this.tableName = tableName; | ||
52 | - this.columns = Maps.newHashMap(); | ||
53 | - } | ||
54 | - | ||
55 | - /** | ||
56 | - * Row constructor. | ||
57 | - * | ||
58 | - * @param tableName table name | ||
59 | * @param columns Map of Column entity | 46 | * @param columns Map of Column entity |
60 | * @param uuid UUID of the row | 47 | * @param uuid UUID of the row |
61 | */ | 48 | */ | ... | ... |
... | @@ -21,13 +21,9 @@ import com.google.common.primitives.UnsignedLongs; | ... | @@ -21,13 +21,9 @@ import com.google.common.primitives.UnsignedLongs; |
21 | import com.google.common.util.concurrent.ThreadFactoryBuilder; | 21 | import com.google.common.util.concurrent.ThreadFactoryBuilder; |
22 | import org.slf4j.Logger; | 22 | import org.slf4j.Logger; |
23 | 23 | ||
24 | -import java.io.BufferedReader; | ||
25 | import java.io.File; | 24 | import java.io.File; |
26 | -import java.io.FileInputStream; | ||
27 | import java.io.IOException; | 25 | import java.io.IOException; |
28 | -import java.io.InputStreamReader; | ||
29 | import java.nio.ByteBuffer; | 26 | import java.nio.ByteBuffer; |
30 | -import java.nio.charset.StandardCharsets; | ||
31 | import java.nio.file.FileVisitResult; | 27 | import java.nio.file.FileVisitResult; |
32 | import java.nio.file.Files; | 28 | import java.nio.file.Files; |
33 | import java.nio.file.Path; | 29 | import java.nio.file.Path; |
... | @@ -35,7 +31,6 @@ import java.nio.file.Paths; | ... | @@ -35,7 +31,6 @@ import java.nio.file.Paths; |
35 | import java.nio.file.SimpleFileVisitor; | 31 | import java.nio.file.SimpleFileVisitor; |
36 | import java.nio.file.StandardCopyOption; | 32 | import java.nio.file.StandardCopyOption; |
37 | import java.nio.file.attribute.BasicFileAttributes; | 33 | import java.nio.file.attribute.BasicFileAttributes; |
38 | -import java.util.ArrayList; | ||
39 | import java.util.Arrays; | 34 | import java.util.Arrays; |
40 | import java.util.Collection; | 35 | import java.util.Collection; |
41 | import java.util.Dictionary; | 36 | import java.util.Dictionary; |
... | @@ -432,31 +427,6 @@ public abstract class Tools { | ... | @@ -432,31 +427,6 @@ public abstract class Tools { |
432 | } | 427 | } |
433 | 428 | ||
434 | /** | 429 | /** |
435 | - * Slurps the contents of a file into a list of strings, one per line. | ||
436 | - * | ||
437 | - * @param path file path | ||
438 | - * @return file contents | ||
439 | - * @deprecated in Emu release | ||
440 | - */ | ||
441 | - @Deprecated | ||
442 | - public static List<String> slurp(File path) { | ||
443 | - try ( | ||
444 | - BufferedReader br = new BufferedReader( | ||
445 | - new InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8)); | ||
446 | - ) { | ||
447 | - List<String> lines = new ArrayList<>(); | ||
448 | - String line; | ||
449 | - while ((line = br.readLine()) != null) { | ||
450 | - lines.add(line); | ||
451 | - } | ||
452 | - return lines; | ||
453 | - | ||
454 | - } catch (IOException e) { | ||
455 | - return null; | ||
456 | - } | ||
457 | - } | ||
458 | - | ||
459 | - /** | ||
460 | * Purges the specified directory path. Use with great caution since | 430 | * Purges the specified directory path. Use with great caution since |
461 | * no attempt is made to check for symbolic links, which could result in | 431 | * no attempt is made to check for symbolic links, which could result in |
462 | * deletion of unintended files. | 432 | * deletion of unintended files. | ... | ... |
-
Please register or login to post a comment