Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2011-02-02 18:09:53 +0000
committerRyan D. Brooks2011-02-02 18:09:53 +0000
commit033fc41e5148a1e9c296e87d5bbc1c45791c4559 (patch)
tree0596211480d83542a3a0bac264a80ca2a9fd5995
parentded715535112caac4e7ff37dcc80d8ab30ca6229 (diff)
downloadorg.eclipse.osee-033fc41e5148a1e9c296e87d5bbc1c45791c4559.tar.gz
org.eclipse.osee-033fc41e5148a1e9c296e87d5bbc1c45791c4559.tar.xz
org.eclipse.osee-033fc41e5148a1e9c296e87d5bbc1c45791c4559.zip
refactor: Clean-up Warnings0.9.8.v201102020001_RC
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/GUID.java13
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactCache.java4
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactLoader.java1
3 files changed, 7 insertions, 11 deletions
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 3d69434735f..f96421826e8 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 @@ public class GUID {
};
private GUID() {
+ // Utility Class
}
public static String create() {
@@ -69,8 +68,4 @@ public class GUID {
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 3ea5d29e155..38f88883b09 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 @@ public final class ArtifactCache {
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 @@ public final class ArtifactCache {
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 0dd627ce713..7b0b3d96657 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 @@ public final class ArtifactLoader {
return artifact;
}
+ @SuppressWarnings("unchecked")
static void loadArtifactData(Artifact artifact, LoadLevel loadLevel) throws OseeCoreException {
int queryId = getNewQueryId();
Timestamp insertTime = GlobalTime.GreenwichMeanTimestamp();

Back to the top