[java] fix bug that forced platformName of windows 7 to vista
@@ -58,7 +58,7 @@ public String toString() {
/**
* For versions of Windows that "feel like" Windows Vista.
*/
- VISTA("windows vista", "Windows Server 2008", "windows 7", "win7") {
+ VISTA("windows 7", "win7") {
@Override
public Platform family() {
return WINDOWS;
@@ -69,6 +69,17 @@ public String toString() {
}
},
+ WIN7("windows 7", "win7") {
+ @Override
+ public Platform family() {
+ return WINDOWS;
+ }
+ @Override
+ public String toString() {
+ return "Windows 7";
+ }
+ },
+
/**
* For versions of Windows that "feel like" Windows 8.
*/
