File: remove_ch_rinn_imports.patch

package info (click to toggle)
libsis-base-java 18.09~pre1%2Bgit20180827.fe4953e%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,156 kB
  • sloc: java: 9,106; ansic: 813; xml: 160; sh: 139; makefile: 35
file content (47 lines) | stat: -rw-r--r-- 1,629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Subject: unneeded and unavailable method decorator
Description: decorator is not available in Debian and is not useful for package
Author: Tim Booth
Forwarded: no
Last-Updated: 2015-08-21
--- a/source/java/ch/systemsx/cisd/base/unix/Unix.java
+++ b/source/java/ch/systemsx/cisd/base/unix/Unix.java
@@ -19,7 +19,6 @@ package ch.systemsx.cisd.base.unix;
 import java.io.File;
 import java.io.IOException;
 
-import ch.rinn.restrictions.Private;
 import ch.systemsx.cisd.base.exceptions.CheckedExceptionTunnel;
 import ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked;
 import ch.systemsx.cisd.base.utilities.NativeLibraryUtilities;
@@ -647,13 +646,11 @@ public final class Unix
 
     private static native String strerror();
     
-    @Private
     static boolean isProcessRunningProcFS(int pid)
     {
         return new File("/proc/" + pid).isDirectory();
     }
 
-    @Private
     static boolean isProcessRunningPS(int pid)
     {
         try
--- a/sourceTest/java/ch/systemsx/cisd/base/unix/UnixTests.java
+++ b/sourceTest/java/ch/systemsx/cisd/base/unix/UnixTests.java
@@ -27,7 +27,6 @@ import java.nio.charset.Charset;
 import org.apache.commons.io.FileUtils;
 import org.testng.annotations.Test;
 
-import ch.rinn.restrictions.Friend;
 import ch.systemsx.cisd.base.BuildAndEnvironmentInfo;
 import ch.systemsx.cisd.base.tests.AbstractFileSystemTestCase;
 import ch.systemsx.cisd.base.unix.Unix.Group;
@@ -39,7 +38,6 @@ import ch.systemsx.cisd.base.unix.Unix.S
  * 
  * @author Bernd Rinn
  */
-@Friend(toClasses = Unix.class)
 public class UnixTests extends AbstractFileSystemTestCase
 {
     private UnixTests()