Skip to content

Commit

Permalink
[refactor] field modifier order in pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
line-o committed Jun 19, 2023
1 parent 55ce29d commit d22ea07
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
import org.exist.xquery.value.Sequence;

public class NoIndexPragma extends Pragma {
public final static String NO_INDEX_PRAGMA_LOCAL_NAME = "no-index";
public final static QName NO_INDEX_PRAGMA = new QName(NO_INDEX_PRAGMA_LOCAL_NAME, Namespaces.EXIST_NS, "exist");
public static final String NO_INDEX_PRAGMA_LOCAL_NAME = "no-index";
public static final QName NO_INDEX_PRAGMA = new QName(NO_INDEX_PRAGMA_LOCAL_NAME, Namespaces.EXIST_NS, "exist");

private final static Logger LOG = LogManager.getLogger(NoIndexPragma.class);
private static final Logger LOG = LogManager.getLogger(NoIndexPragma.class);

public NoIndexPragma(QName qname, String contents) throws XPathException {
this(null, qname, contents);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
import static java.lang.System.arraycopy;

public class Optimize extends Pragma {
public final static String OPTIMIZE_PRAGMA_LOCAL_NAME = "optimize";
public final static QName OPTIMIZE_PRAGMA = new QName(OPTIMIZE_PRAGMA_LOCAL_NAME, Namespaces.EXIST_NS, "exist");
public static final String OPTIMIZE_PRAGMA_LOCAL_NAME = "optimize";
public static final QName OPTIMIZE_PRAGMA = new QName(OPTIMIZE_PRAGMA_LOCAL_NAME, Namespaces.EXIST_NS, "exist");

private final static Logger LOG = LogManager.getLogger(Optimize.class);
private static final Logger LOG = LogManager.getLogger(Optimize.class);

private boolean enabled = true;
private XQueryContext context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import org.exist.xquery.value.Sequence;

public class ProfilePragma extends Pragma {
public final static String PROFILING_PRAGMA_LOCAL_NAME = "profiling";
public final static QName PROFILING_PRAGMA = new QName(PROFILING_PRAGMA_LOCAL_NAME, Namespaces.EXIST_NS, "exist");
public static final String PROFILING_PRAGMA_LOCAL_NAME = "profiling";
public static final QName PROFILING_PRAGMA = new QName(PROFILING_PRAGMA_LOCAL_NAME, Namespaces.EXIST_NS, "exist");

public ProfilePragma(QName qname, String contents) throws XPathException {
this(null, qname, contents);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
import org.exist.xquery.value.Sequence;

public class TimerPragma extends Pragma {
public final static String TIMER_PRAGMA_LOCAL_NAME = "timer";
public final static QName TIMER_PRAGMA = new QName(TIMER_PRAGMA_LOCAL_NAME, Namespaces.EXIST_NS, "exist");
public static final String TIMER_PRAGMA_LOCAL_NAME = "timer";
public static final QName TIMER_PRAGMA = new QName(TIMER_PRAGMA_LOCAL_NAME, Namespaces.EXIST_NS, "exist");

private Logger log = null;

private long start;
Expand Down

0 comments on commit d22ea07

Please sign in to comment.