mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
code cleanup
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,5 @@
|
|||||||
package org.diylc.announcements;
|
package org.diylc.announcements;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ public class ComparatorFactory {
|
|||||||
if (componentZOrderComparator == null) {
|
if (componentZOrderComparator == null) {
|
||||||
componentZOrderComparator = new Comparator<IDIYComponent<?>>() {
|
componentZOrderComparator = new Comparator<IDIYComponent<?>>() {
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public int compare(IDIYComponent<?> o1, IDIYComponent<?> o2) {
|
public int compare(IDIYComponent<?> o1, IDIYComponent<?> o2) {
|
||||||
ComponentType type1 =
|
ComponentType type1 =
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ public class PointConverter implements Converter {
|
|||||||
return new Point((int) Math.round(x * Constants.PIXELS_PER_INCH), (int) Math.round(y * Constants.PIXELS_PER_INCH));
|
return new Point((int) Math.round(x * Constants.PIXELS_PER_INCH), (int) Math.round(y * Constants.PIXELS_PER_INCH));
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("rawtypes")
|
||||||
@Override
|
@Override
|
||||||
public boolean canConvert(Class clazz) {
|
public boolean canConvert(Class clazz) {
|
||||||
return Point.class.isAssignableFrom(clazz);
|
return Point.class.isAssignableFrom(clazz);
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ public class BomMaker {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
for (IDIYComponent<?> component : sortedComponents) {
|
for (IDIYComponent<?> component : sortedComponents) {
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
ComponentType type =
|
ComponentType type =
|
||||||
ComponentProcessor.getInstance().extractComponentTypeFrom(
|
ComponentProcessor.getInstance().extractComponentTypeFrom(
|
||||||
(Class<? extends IDIYComponent<?>>) component.getClass());
|
(Class<? extends IDIYComponent<?>>) component.getClass());
|
||||||
|
|||||||
Reference in New Issue
Block a user