Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2018-02-27 00:26:23 +0000
committerRyan D. Brooks2020-12-15 22:27:56 +0000
commit41981e24896ce2bc54332fa6dbc1df4b69cdbf7a (patch)
tree93d595acf090ebe125e8f32343dca60fe37e837b
parentd188becb600e5a408c6e8c7538dd81be08831299 (diff)
downloadorg.eclipse.osee-41981e24896ce2bc54332fa6dbc1df4b69cdbf7a.tar.gz
org.eclipse.osee-41981e24896ce2bc54332fa6dbc1df4b69cdbf7a.tar.xz
org.eclipse.osee-41981e24896ce2bc54332fa6dbc1df4b69cdbf7a.zip
bug: Fix TagEncoder encoding width
-rw-r--r--plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/tagger/TagEncoder.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/tagger/TagEncoder.java b/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/tagger/TagEncoder.java
index 6bd3e042d07..4ad47b9b136 100644
--- a/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/tagger/TagEncoder.java
+++ b/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/tagger/TagEncoder.java
@@ -81,7 +81,7 @@ public class TagEncoder {
} else {
tagBits |= pos << tagBitsPos;
}
- tagBitsPos += 4;
+ tagBitsPos += 5;
}
}
if (tagBits != 0) {
@@ -91,8 +91,14 @@ public class TagEncoder {
public static final void main(String[] args) {
TagEncoder tagEncoder = new TagEncoder();
- String tests[] =
- new String[] {"111j1", "111k1", "text", "11$1111,111.1111", "11-1111(111)1111", "ImportTraceUnitsTest2.txt"};
+ String tests[] = new String[] {
+ "111j1",
+ "111k1",
+ "text",
+ "11$1111,111.1111",
+ "11-1111(111)1111",
+ "ImportTraceUnitsTest2",
+ "ImportTraceUnitsTest3"};
for (String text : tests) {
System.out.print(text + " ");
tagEncoder.encode(text, (word, codedTag) -> System.out.print(codedTag));

Back to the top