refactor: Clean-up Warnings
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/GUID.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/GUID.java
index 3d69434..f964218 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/GUID.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/GUID.java
@@ -10,17 +10,15 @@
*******************************************************************************/
package org.eclipse.osee.framework.jdk.core.util;
-import java.io.UnsupportedEncodingException;
import java.util.regex.Pattern;
-
import org.apache.commons.codec.binary.Base64;
/**
* @author Ryan D. Brooks
* @author Robert A. Fisher
*/
-public class GUID {
- //Note: We can not allow periods in GUID. The update edit logic makes assumptions that there will be no periods.
+public final class GUID {
+ //Note: We can not allow periods in GUID. The update edit logic makes assumptions that there will be no periods.
private final static Pattern pattern = Pattern.compile("[0-9A-Za-z\\+_=]{20,22}");
private static final ThreadLocal<byte[]> threadLocalBytes = new ThreadLocal<byte[]>() {
@@ -31,6 +29,7 @@
};
private GUID() {
+ // Utility Class
}
public static String create() {
@@ -69,8 +68,4 @@
writeBuffer[14] = (byte) (low >>> 0);
return writeBuffer;
}
-
- public static void main(String[] args) throws UnsupportedEncodingException {
- System.out.println(GUID.create());
- }
-}
\ No newline at end of file
+}
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java
index 3ea5d29..38f8888 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java
@@ -59,7 +59,7 @@
cache.deCache(artifact);
}
- public static List<Artifact> getArtifactsByName(IArtifactType artifactType, String name) throws OseeCoreException {
+ public static List<Artifact> getArtifactsByName(IArtifactType artifactType, String name) {
List<Artifact> arts = new ArrayList<Artifact>();
for (Artifact artifact : getArtifactsByType(artifactType)) {
if (artifact.getName().equals(name)) {
@@ -131,7 +131,7 @@
return ACTIVE_CACHE.getByStaticId(staticId, branch);
}
- public static List<Artifact> getArtifactsByType(IArtifactType artifactType) throws OseeCoreException {
+ public static List<Artifact> getArtifactsByType(IArtifactType artifactType) {
return ACTIVE_CACHE.getByType(artifactType);
}
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java
index 0dd627c..7b0b3d9 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java
@@ -334,6 +334,7 @@
return artifact;
}
+ @SuppressWarnings("unchecked")
static void loadArtifactData(Artifact artifact, LoadLevel loadLevel) throws OseeCoreException {
int queryId = getNewQueryId();
Timestamp insertTime = GlobalTime.GreenwichMeanTimestamp();