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:
Klaus Reimer 2013-04-13 12:35:00 +02:00
parent 6103198ea3
commit 4a75492cb5
5 changed files with 13 additions and 13 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}