minor fixes

This commit is contained in:
Denis Molony 2017-04-05 18:47:28 +10:00
parent 5a7383183a
commit 374050d9bc
2 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ public class CPMDisk extends AbstractFormattedDisk
setEmptyByte ((byte) 0xE5);
// search for the version string
for (int i = 8; i >= 4; i -= 2)
{
byte[] buffer = disk.readSector (0, i);

View File

@ -49,7 +49,7 @@ public class DiskFactory
Boolean compressed = false;
Path originalPath = Paths.get (path);
if (suffix.equals ("gz"))
if ("gz".equals (suffix))
{
if (debug)
System.out.println (" ** gzip **");
@ -78,7 +78,7 @@ public class DiskFactory
return null;
}
}
else if (suffix.equals ("zip"))
else if ("zip".equals (suffix))
{
if (debug)
System.out.println (" ** zip **");