Motivation: |
Avoid deprecated messages using Style interfaces |
|
|---|---|---|
Contact: |
Jesse Eichar |
|
Tracker: |
|
|
Tagline: |
|
This page represents the current plan; for discussion please check the tracker link above.
Avoid deprecated messages
|
This change effects imports; also a good chance to remove old FactoryFinder code where it is used to create literals etc...
import org.opengis.filter.expression.Expression;
interface AnchorPoint {
...
void setAnchorPointX(Expression x);
Expression getAnchorPointX();
...
}
|
import org.opengis.filter.expression.Expression;
interface AnchorPoint {
void setAnchorPointX(Expression x);
Expression getAnchorPointX();
...
}
|
This is also a good chance to make sure the FilterFactoryFinder calls are removed:
interface AnchorPoint {
private static final java.util.logging.Logger LOGGER = java.util.logging.Logger
.getLogger("org.geotools.core");
private FilterFactory filterFactory;
private Expression anchorPointX = null;
private Expression anchorPointY = null;
public AnchorPointImpl() {
this( CommonFactoryFinder.getFilterFactory( GeoTools.getDefaultHints() ) );
}
/**
* Creates a new instance of DefaultAnchorPoint
*/
public AnchorPointImpl( FilterFactory filterFactory ) {
this.filterFactory = filterFactory;
try {
anchorPointX = filterFactory.literal( 0.0 );
anchorPointY = filterFactory.literal( 0.5 );
} catch (org.geotools.filter.IllegalFilterException ife) {
LOGGER.severe("Failed to build defaultAnchorPoint: " + ife);
}
}
}
|
The follow documentation pages were revised: