Repository: flex-utilities Updated Branches: refs/heads/feature/flash-downloader cf75f0e01 -> ae2aa75d1
- Made properties private and constants final Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/ae2aa75d Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/ae2aa75d Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/ae2aa75d Branch: refs/heads/feature/flash-downloader Commit: ae2aa75d120628df6e41890c77eeceb82ebc397d Parents: cf75f0e Author: Christofer Dutz <[email protected]> Authored: Wed Jul 27 19:44:40 2016 +0200 Committer: Christofer Dutz <[email protected]> Committed: Wed Jul 27 19:44:40 2016 +0200 ---------------------------------------------------------------------- .../download/utils/utils/ApplePartitionMap.java | 24 ++++++++++---------- .../utils/utils/DmgBlockChunkEntry.java | 12 +++++----- .../download/utils/utils/HFSPlusForkData.java | 7 +++--- 3 files changed, 21 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ae2aa75d/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/ApplePartitionMap.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/ApplePartitionMap.java b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/ApplePartitionMap.java index 07a7211..e8889fb 100644 --- a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/ApplePartitionMap.java +++ b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/ApplePartitionMap.java @@ -12,18 +12,18 @@ import java.io.IOException; */ public class ApplePartitionMap { - public static int STATUS_ENTRY_IS_VALID = 0x00000001; - public static int STATUS_ENTRY_IS_ALLOCATED = 0x00000002; - public static int STATUS_ENTRY_IN_USE = 0x00000004; - public static int STATUS_ENTRY_CONTAINS_BOOT_INFORMATION = 0x00000008; - public static int STATUS_PARTITION_IS_READABLE = 0x00000010; - public static int STATUS_PARTITION_IS_WRITABLE = 0x00000020; - public static int STATUS_BOOT_CODE_IS_POSITION_INDEPENDENT = 0x00000040; - public static int STATUS_PARTITION_CONTAINS_CHAIN_COMPATIBLE_DRIVER = 0x00000100; - public static int STATUS_PARTITION_CONTAINS_A_REAL_DRIVER = 0x00000200; - public static int STATUS_PARTITION_CONTAINS_A_CHAIN_DRIVER = 0x00000400; - public static int STATUS_AUTOMATICALLY_MOUNT_AT_STARTUP = 0x40000000; - public static int STATUS_THE_STARTUP_PARTITION = 0x80000000; + public static final int STATUS_ENTRY_IS_VALID = 0x00000001; + public static final int STATUS_ENTRY_IS_ALLOCATED = 0x00000002; + public static final int STATUS_ENTRY_IN_USE = 0x00000004; + public static final int STATUS_ENTRY_CONTAINS_BOOT_INFORMATION = 0x00000008; + public static final int STATUS_PARTITION_IS_READABLE = 0x00000010; + public static final int STATUS_PARTITION_IS_WRITABLE = 0x00000020; + public static final int STATUS_BOOT_CODE_IS_POSITION_INDEPENDENT = 0x00000040; + public static final int STATUS_PARTITION_CONTAINS_CHAIN_COMPATIBLE_DRIVER = 0x00000100; + public static final int STATUS_PARTITION_CONTAINS_A_REAL_DRIVER = 0x00000200; + public static final int STATUS_PARTITION_CONTAINS_A_CHAIN_DRIVER = 0x00000400; + public static final int STATUS_AUTOMATICALLY_MOUNT_AT_STARTUP = 0x40000000; + public static final int STATUS_THE_STARTUP_PARTITION = 0x80000000; private int numPartitions; private int startingSectorOfPartition; http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ae2aa75d/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/DmgBlockChunkEntry.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/DmgBlockChunkEntry.java b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/DmgBlockChunkEntry.java index 58c4737..ede1b6d 100644 --- a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/DmgBlockChunkEntry.java +++ b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/DmgBlockChunkEntry.java @@ -10,12 +10,12 @@ import java.util.ArrayList; */ public class DmgBlockChunkEntry { - int entryType; // Compression type used or entry type (see next table) - int comment; // "+beg" or "+end", if EntryType is comment (0x7FFFFFFE). Else reserved. - long sectorNumber; // Start sector of this chunk - long sectorCount; // Number of sectors in this chunk - long compressedOffset; // Start of chunk in data fork - long compressedLength; // Count of bytes of chunk, in data fork + private int entryType; // Compression type used or entry type (see next table) + private int comment; // "+beg" or "+end", if EntryType is comment (0x7FFFFFFE). Else reserved. + private long sectorNumber; // Start sector of this chunk + private long sectorCount; // Number of sectors in this chunk + private long compressedOffset; // Start of chunk in data fork + private long compressedLength; // Count of bytes of chunk, in data fork public DmgBlockChunkEntry(byte[] data) { // Initialize the fields by parsing the input bytes. http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ae2aa75d/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/HFSPlusForkData.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/HFSPlusForkData.java b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/HFSPlusForkData.java index dcec76f..e4c5b9a 100644 --- a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/HFSPlusForkData.java +++ b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/utils/utils/HFSPlusForkData.java @@ -3,7 +3,6 @@ package org.apache.flex.utilities.converter.retrievers.download.utils.utils; import java.io.DataInputStream; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; /** @@ -12,9 +11,9 @@ import java.util.List; public class HFSPlusForkData { private long logicalSize; - int clumpSize; - int totalBlocks; - List<HFSPlusExtent> extents; + private int clumpSize; + private int totalBlocks; + private List<HFSPlusExtent> extents; public HFSPlusForkData(DataInputStream dis) { try {
