Make private constructors package-private because code-analyzers
complain about it because they cannot see that JNI is creating the classes.
This commit is contained in:
parent
6103198ea3
commit
4a75492cb5
@ -40,10 +40,10 @@ public final class Device
|
||||
private long pointer;
|
||||
|
||||
/**
|
||||
* Private constructor to prevent manual instantiation. Devices are
|
||||
* Package-private constructor to prevent manual instantiation. Devices are
|
||||
* always created by JNI.
|
||||
*/
|
||||
private Device()
|
||||
Device()
|
||||
{
|
||||
// Empty
|
||||
}
|
||||
|
||||
@ -34,10 +34,10 @@ public final class EndpointDescriptor implements UsbEndpointDescriptor
|
||||
private long pointer;
|
||||
|
||||
/**
|
||||
* Private constructor to prevent manual instantiation. Endpoint
|
||||
* descriptors area always created by JNI.
|
||||
* Package-private constructor to prevent manual instantiation. Endpoint
|
||||
* descriptors are always created by JNI.
|
||||
*/
|
||||
private EndpointDescriptor()
|
||||
EndpointDescriptor()
|
||||
{
|
||||
// Empty
|
||||
}
|
||||
|
||||
@ -24,10 +24,10 @@ public final class Interface
|
||||
private long pointer;
|
||||
|
||||
/**
|
||||
* Private constructor to prevent manual instantiation. Interfaces
|
||||
* area always created by JNI.
|
||||
* Package-private constructor to prevent manual instantiation. Interfaces
|
||||
* are always created by JNI.
|
||||
*/
|
||||
private Interface()
|
||||
Interface()
|
||||
{
|
||||
// Empty
|
||||
}
|
||||
|
||||
@ -34,10 +34,10 @@ public final class InterfaceDescriptor implements UsbInterfaceDescriptor
|
||||
private long pointer;
|
||||
|
||||
/**
|
||||
* Private constructor to prevent manual instantiation. Interface
|
||||
* descriptors area always created by JNI.
|
||||
* Package-private constructor to prevent manual instantiation. Interface
|
||||
* descriptors are always created by JNI.
|
||||
*/
|
||||
private InterfaceDescriptor()
|
||||
InterfaceDescriptor()
|
||||
{
|
||||
// Empty
|
||||
}
|
||||
|
||||
@ -26,10 +26,10 @@ public final class Version implements Comparable<Version>
|
||||
private long pointer;
|
||||
|
||||
/**
|
||||
* Private constructor to prevent manual instantiation. An instance
|
||||
* Package-private constructor to prevent manual instantiation. An instance
|
||||
* is only returned by the JNI method {@link LibUSB#getVersion()}.
|
||||
*/
|
||||
private Version()
|
||||
Version()
|
||||
{
|
||||
// Empty
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user