Opened 9 years ago
Closed 9 years ago
#12112 closed enhancement (fixed)
[Patch] Use java.util.Properties to read REVISION file in the Version-class
Reported by: | floscher | Owned by: | floscher |
---|---|---|---|
Priority: | normal | Milestone: | 15.11 |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
Previously the REVISION file was read from the resources using two custom methods in the Version-class: loadResourceFile(URL)
and parseManifestStyleFormattedString(String)
I replaced those two with java.util.Properties.load(InputStream)
, which reduces the code in the Version-class.
As the method loadResourceFile(URL)
was also used in the class AboutAction
, I transferred it to that class, adapted it to better fit the needs of that class (don't produce an error when a resource file can't be read, but instead display a warning in the text area where normally the contents of that file would be displayed), renamed it to setTextFromResourceFile(JTextArea, String)
and made it private.
Attachments (1)
Change History (3)
by , 9 years ago
Attachment: | patch0.patch added |
---|
comment:1 by , 9 years ago
Milestone: | → 15.11 |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In 9019/josm: