imports & code formatting 1

This commit is contained in:
honfika
2014-08-24 21:22:59 +02:00
parent 226eb3e7a6
commit bd0e1c7f33
43 changed files with 113 additions and 118 deletions
@@ -90,14 +90,14 @@ public class Cache<E> {
}
public boolean contains(Object key) {
if (storageType == STORAGE_FILES) {
if (storageType == STORAGE_FILES) {
return cacheFiles.containsKey(key);
} else if (storageType == STORAGE_MEMORY) {
return cacheMemory.containsKey(key);
}
return false;
}
public void clear() {
cacheMemory.clear();
for (File f : cacheFiles.values()) {
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.helpers;
import com.jpexs.decompiler.flash.AppStrings;
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.helpers;
import java.util.concurrent.ExecutionException;
@@ -28,11 +29,11 @@ import java.util.concurrent.TimeoutException;
public class ImmediateFuture<V> implements Future<V> {
private final V value;
public ImmediateFuture(V value) {
this.value = value;
}
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
return false;
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.helpers;
import java.io.InputStream;
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.helpers;
import java.io.IOException;
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.helpers;
import java.io.IOException;