X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2Fstore%2FDbStore.java;fp=prod%2Fnet%2Fjaekl%2Fcfb%2Fstore%2FDbStore.java;h=e50f7403910830d798e7cd8ca1b3296f056f42bc;hp=ed22291387c14c8047593d7b1a11932633df6361;hb=a59aa887766f250ba0ad0948c54e1a8d9a590a23;hpb=5ea506df00f2518856a314665d5af11d4581d26d diff --git a/prod/net/jaekl/cfb/store/DbStore.java b/prod/net/jaekl/cfb/store/DbStore.java index ed22291..e50f740 100644 --- a/prod/net/jaekl/cfb/store/DbStore.java +++ b/prod/net/jaekl/cfb/store/DbStore.java @@ -3,9 +3,7 @@ package net.jaekl.cfb.store; import java.sql.Connection; import java.sql.SQLException; import java.util.List; -import java.util.Locale; -import net.jaekl.cfb.CfbBundle; import net.jaekl.cfb.analyze.Analysis; import net.jaekl.cfb.db.CfbSchema; import net.jaekl.cfb.db.Column; @@ -47,8 +45,6 @@ public class DbStore { } public boolean put(Analysis analysis) throws SQLException, TypeMismatchException, StoreException { - CfbBundle bundle = CfbBundle.getInst(Locale.getDefault()); - if (null == analysis) { return false; } @@ -89,10 +85,10 @@ public class DbStore { Location thirdLoc = (locs.size() > 2) ? locs.get(2) : null; if (BugPattern.UNKNOWN.getId() == bugId) { - throw new StoreException(bundle.get(CfbBundle.BUG_TYPE_UNKNOWN, ""+bug.getType())); + throw new StoreException(StoreException.Type.UNKNOWN_PATTERN, ""+bug.getType()); } if (BugCategory.UNKNOWN.getId() == categoryId) { - throw new StoreException(bundle.get(CfbBundle.BUG_CATEGORY_UNKNOWN, ""+bug.getCategory())); + throw new StoreException(StoreException.Type.UNKNOWN_CATEGORY, ""+bug.getCategory()); } values[row][0] = foundId;