| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c8068d2 commit 3d928fd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,7 @@ public List<Item> readConfig(String configFile) { | |||
| 43 | 43 | if (event.isStartElement()) { | |
| 44 | 44 | StartElement startElement = event.asStartElement(); | |
| 45 | 45 | // If we have a item element we create a new item | |
| 46 | - if (startElement.getName().getLocalPart() == (ITEM)) { | ||
| 46 | + if (startElement.getName().getLocalPart().equals(ITEM)) { | ||
| 47 | 47 | item = new Item(); | |
| 48 | 48 | // We read the attributes from this tag and add the date | |
| 49 | 49 | // attribute to our object | |
@@ -90,7 +90,7 @@ public List<Item> readConfig(String configFile) { | |||
| 90 | 90 | // If we reach the end of an item element we add it to the list | |
| 91 | 91 | if (event.isEndElement()) { | |
| 92 | 92 | EndElement endElement = event.asEndElement(); | |
| 93 | - if (endElement.getName().getLocalPart() == (ITEM)) { | ||
| 93 | + if (endElement.getName().getLocalPart().equals(ITEM)) { | ||
| 94 | 94 | items.add(item); | |
| 95 | 95 | } | |
| 96 | 96 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments