Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-03 11:01:28 +0000
committerSteffen Pingel2012-03-03 16:24:09 +0000
commite6c68d8288c4476487902093b002a07821f8ac77 (patch)
treee60e9669bf24d2e80d2cecdade306d60773adb5c
parent716ae0bc2c6cdd5718d4887d66a9617ae7d6f86d (diff)
downloadorg.eclipse.mylyn.tasks-e6c68d8288c4476487902093b002a07821f8ac77.tar.gz
org.eclipse.mylyn.tasks-e6c68d8288c4476487902093b002a07821f8ac77.tar.xz
org.eclipse.mylyn.tasks-e6c68d8288c4476487902093b002a07821f8ac77.zip
Revert "REOPENED - bug 367861: fields marked as incoming on Eclipse.org that had no changes https://bugs.eclipse.org/bugs/show_bug.cgi?id=367861"
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java7
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java17
2 files changed, 1 insertions, 23 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
index 8c64575b6..0b41a333a 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java
@@ -246,13 +246,6 @@ public class SaxMultiBugReportContentHandler extends DefaultHandler {
}
String parsedText = characters.toString();
- if (parsedText.equals("")) { //$NON-NLS-1$
- // bug 367861: avoid showing incomings for fields that were previously not part of the schema when empty
- if (localName.equals("resolution") || localName.equals("bug_file_loc") //$NON-NLS-1$ //$NON-NLS-2$
- || localName.equals("status_whiteboard") || localName.equals("keywords")) { //$NON-NLS-1$ //$NON-NLS-2$
- return;
- }
- }
if (localName.startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) {
TaskAttribute endAttribute = repositoryTaskData.getRoot().getAttribute(localName);
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java
index a8f56d94d..fddb8019b 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java
@@ -497,19 +497,4 @@ public class BugzillaRepositoryConnectorStandaloneTest extends TestCase {
assertEquals(PriorityLevel.P3, mapping.getPriorityLevel());
}
}
-
- public void testEmptyTags() throws Exception {
- TaskData taskDataNew = BugzillaFixture.current().getTask("1", client);
- List<String> list = taskDataNew.getRoot().getAttribute(BugzillaAttribute.RESOLUTION.getKey()).getValues();
- assertEquals(0, list.size());
- assertEquals("", taskDataNew.getRoot().getAttribute(BugzillaAttribute.RESOLUTION.getKey()).getValue());
- assertEquals("", taskDataNew.getRoot().getAttribute(BugzillaAttribute.BUG_FILE_LOC.getKey()).getValue());
- list = taskDataNew.getRoot().getAttribute(BugzillaAttribute.KEYWORDS.getKey()).getValues();
- assertEquals(0, list.size());
- assertEquals("", taskDataNew.getRoot().getAttribute(BugzillaAttribute.KEYWORDS.getKey()).getValue());
- list = taskDataNew.getRoot().getAttribute(BugzillaAttribute.STATUS_WHITEBOARD.getKey()).getValues();
- assertEquals(0, list.size());
- assertEquals("", taskDataNew.getRoot().getAttribute(BugzillaAttribute.STATUS_WHITEBOARD.getKey()).getValue());
- }
-
-} \ No newline at end of file
+}

Back to the top