Rename SourceMonitor to SourceMonitored, and remove all the settings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929384 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -27,9 +27,9 @@ import java.util.concurrent.ScheduledThreadPoolExecutor;
|
||||
import java.util.concurrent.ThreadFactory;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public final class ExecutionPool {
|
||||
protected static class ExecutionPoolThreadFactory implements ThreadFactory {
|
||||
private final String namePrefix;
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
*******************************************************************************/
|
||||
package org.ofbiz.base.concurrent;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public abstract class TTLCachedObject<T> extends TTLObject<T> {
|
||||
public static final long NOT_EXISTANT_TIMESTAMP = Long.MIN_VALUE;
|
||||
public static final long FORCE_REGEN = Long.MIN_VALUE + 1;
|
||||
|
||||
@@ -29,11 +29,11 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
|
||||
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.lang.ObjectWrapper;
|
||||
import org.ofbiz.base.util.UtilIO;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public abstract class TTLObject<T> implements ObjectWrapper<T> {
|
||||
private static final ScheduledExecutorService updateExecutor = ExecutionPool.getNewOptimalExecutor("TTLObject(async-update)");
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@ import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import org.ofbiz.base.concurrent.TTLObject;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class AsyncTTLObjectTest extends TTLObjectTest {
|
||||
public AsyncTTLObjectTest(String name) {
|
||||
super(name, false);
|
||||
|
||||
@@ -22,11 +22,11 @@ import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import org.ofbiz.base.concurrent.TTLObject;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.lang.ObjectWrapper;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class SyncTTLObjectTest extends TTLObjectTest {
|
||||
public SyncTTLObjectTest(String name) {
|
||||
super(name, true);
|
||||
|
||||
@@ -21,9 +21,9 @@ package org.ofbiz.base.concurrent.test;
|
||||
import org.ofbiz.base.concurrent.GeneratedResult;
|
||||
import org.ofbiz.base.concurrent.TTLCachedObject;
|
||||
import org.ofbiz.base.concurrent.TTLObject;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class TTLCachedObjectTest extends TTLObjectTest {
|
||||
static {
|
||||
TTLObject.setDefaultTTLForClass(TTLCachedObjectTestTTLObject.class, 100);
|
||||
|
||||
@@ -29,10 +29,10 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import org.ofbiz.base.concurrent.ExecutionPool;
|
||||
import org.ofbiz.base.concurrent.TTLObject;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public abstract class TTLObjectTest extends GenericTestCaseBase {
|
||||
static {
|
||||
TTLObject.setDefaultTTLForClass(TTLObjectTestTTLObject.class, 100);
|
||||
|
||||
@@ -25,13 +25,13 @@ import java.util.ServiceLoader;
|
||||
import javolution.util.FastMap;
|
||||
import javolution.util.FastSet;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.ObjectType;
|
||||
import org.ofbiz.base.util.UtilGenerics;
|
||||
|
||||
/** A <code>Converter</code> factory and repository. */
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class Converters {
|
||||
protected static final String module = Converters.class.getName();
|
||||
protected static final String DELIMITER = "->";
|
||||
|
||||
@@ -20,11 +20,11 @@ package org.ofbiz.base.conversion.test;
|
||||
|
||||
import org.ofbiz.base.conversion.Converter;
|
||||
import org.ofbiz.base.conversion.DateTimeConverters;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
import org.ofbiz.base.util.UtilGenerics;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class DateTimeTests extends GenericTestCaseBase {
|
||||
|
||||
public DateTimeTests(String name) {
|
||||
|
||||
@@ -36,13 +36,13 @@ import org.ofbiz.base.conversion.Converter;
|
||||
import org.ofbiz.base.conversion.ConverterLoader;
|
||||
import org.ofbiz.base.conversion.Converters;
|
||||
import org.ofbiz.base.conversion.JSONResult;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
import org.ofbiz.base.util.UtilGenerics;
|
||||
import org.ofbiz.base.util.UtilMisc;
|
||||
import org.ofbiz.base.util.collections.LRUMap;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class MiscTests extends GenericTestCaseBase {
|
||||
|
||||
public MiscTests(String name) {
|
||||
|
||||
@@ -25,12 +25,12 @@ import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.IndentingWriter;
|
||||
import org.ofbiz.base.util.UtilGenerics;
|
||||
import org.ofbiz.base.util.UtilIO;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class JSONWriter {
|
||||
private final IndentingWriter writer;
|
||||
private final FallbackHandler fallbackHandler;
|
||||
|
||||
@@ -33,11 +33,11 @@ import org.ofbiz.base.json.JSONWriter;
|
||||
import org.ofbiz.base.json.ParseException;
|
||||
import org.ofbiz.base.json.Token;
|
||||
import org.ofbiz.base.json.TokenMgrError;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
import org.ofbiz.base.util.IndentingWriter;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class JSONTests extends GenericTestCaseBase {
|
||||
public JSONTests(String name) {
|
||||
super(name);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
package org.ofbiz.base.lang;
|
||||
|
||||
/** An immutable range of values. */
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class ComparableRange<T extends Comparable<T>> implements Range<T>, Comparable<ComparableRange<T>> {
|
||||
|
||||
protected final T start;
|
||||
|
||||
+1
-3
@@ -26,7 +26,5 @@ import java.lang.annotation.Target;
|
||||
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.TYPE})
|
||||
public @interface SourceMonitor {
|
||||
String[] value();
|
||||
String address() default "dev@ofbiz.apache.org";
|
||||
public @interface SourceMonitored {
|
||||
}
|
||||
@@ -20,9 +20,9 @@ package org.ofbiz.base.lang.test;
|
||||
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
import org.ofbiz.base.lang.ComparableRange;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class ComparableRangeTests extends GenericTestCaseBase {
|
||||
|
||||
public ComparableRangeTests(String name) {
|
||||
|
||||
@@ -22,9 +22,9 @@ import java.io.IOException;
|
||||
import java.io.FilterWriter;
|
||||
import java.io.Writer;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class IndentingWriter extends FilterWriter {
|
||||
protected final StringBuilder indent = new StringBuilder();
|
||||
protected final boolean doSpace;
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.ofbiz.base.conversion.ConversionException;
|
||||
import org.ofbiz.base.conversion.Converter;
|
||||
import org.ofbiz.base.conversion.Converters;
|
||||
import org.ofbiz.base.conversion.LocalizedConverter;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
/**
|
||||
@@ -471,7 +471,7 @@ public class ObjectType {
|
||||
* @return the converted value
|
||||
* @throws GeneralException
|
||||
*/
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
@SuppressWarnings("unchecked")
|
||||
public static Object simpleTypeConvert(Object obj, String type, String format, TimeZone timeZone, Locale locale, boolean noTypeFail) throws GeneralException {
|
||||
if (obj == null) {
|
||||
|
||||
@@ -21,10 +21,10 @@ package org.ofbiz.base.util;
|
||||
import java.io.Serializable;
|
||||
import com.ibm.icu.util.Calendar;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
|
||||
/** An immutable representation of a period of time. */
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
@SuppressWarnings("serial")
|
||||
public class TimeDuration implements Serializable, Comparable<TimeDuration> {
|
||||
/** A <code>TimeDuration</code> instance that represents a zero time duration. */
|
||||
|
||||
@@ -28,13 +28,13 @@ import java.util.Iterator;
|
||||
import java.util.ServiceLoader;
|
||||
|
||||
import org.ofbiz.base.lang.Factory;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
|
||||
/**
|
||||
* UtilObject
|
||||
*
|
||||
*/
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public final class UtilObject {
|
||||
private UtilObject() {
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import javax.el.PropertyNotFoundException;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.UtilGenerics;
|
||||
import org.ofbiz.base.util.UtilObject;
|
||||
@@ -37,7 +37,7 @@ import org.ofbiz.base.util.string.UelUtil;
|
||||
* accessing sub-map values and the "[]" (square bracket) syntax for accessing
|
||||
* list elements. See individual Map operations for more information.
|
||||
*/
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
@SuppressWarnings("serial")
|
||||
public class FlexibleMapAccessor<T> implements Serializable {
|
||||
public static final String module = FlexibleMapAccessor.class.getName();
|
||||
|
||||
+2
-2
@@ -25,13 +25,13 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.collections.FlexibleMapAccessor;
|
||||
import org.ofbiz.base.util.string.FlexibleStringExpander;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class FlexibleMapAccessorTests extends GenericTestCaseBase {
|
||||
private static final Locale localeToTest = new Locale("en", "US");
|
||||
private static final Locale badLocale = new Locale("fr");
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.util.TimeZone;
|
||||
|
||||
import javax.el.PropertyNotFoundException;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.BshUtil;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.GroovyUtil;
|
||||
@@ -50,7 +50,7 @@ import bsh.EvalError;
|
||||
* and specified (XXX) currency.<p>This class extends the UEL by allowing
|
||||
* nested expressions.</p>
|
||||
*/
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class FlexibleStringExpander implements Serializable {
|
||||
|
||||
|
||||
@@ -28,14 +28,14 @@ import java.util.TimeZone;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.string.FlexibleStringExpander;
|
||||
import org.ofbiz.base.conversion.AbstractConverter;
|
||||
import org.ofbiz.base.conversion.ConversionException;
|
||||
import org.ofbiz.base.conversion.Converters;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class FlexibleStringExpanderTests extends TestCase {
|
||||
private static final Locale localeToTest = new Locale("en", "US");
|
||||
private static final Locale badLocale = new Locale("fr");
|
||||
|
||||
@@ -20,11 +20,11 @@ package org.ofbiz.base.util.test;
|
||||
|
||||
import java.io.StringWriter;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.IndentingWriter;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class IndentingWriterTests extends GenericTestCaseBase {
|
||||
public IndentingWriterTests(String name) {
|
||||
super(name);
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.Attr;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.GeneralException;
|
||||
import org.ofbiz.base.util.ObjectType;
|
||||
@@ -45,7 +45,7 @@ import org.ofbiz.base.util.UtilMisc;
|
||||
import org.ofbiz.base.util.UtilXml;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class ObjectTypeTests extends GenericTestCaseBase {
|
||||
public static final String module = ObjectTypeTests.class.getName();
|
||||
private static final LocaleData localeData = new LocaleData("en_US", "Pacific/Wake", "fr", "GMT");
|
||||
|
||||
@@ -23,11 +23,11 @@ package org.ofbiz.base.util.test;
|
||||
import com.ibm.icu.util.Calendar;
|
||||
import com.ibm.icu.util.TimeZone;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.TimeDuration;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class TimeDurationTests extends GenericTestCaseBase {
|
||||
private static final Calendar zero = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
|
||||
|
||||
|
||||
@@ -33,12 +33,12 @@ import java.util.Locale;
|
||||
import java.util.TimeZone;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.UtilIO;
|
||||
import org.ofbiz.base.util.UtilMisc;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class UtilIOTests extends GenericTestCaseBase {
|
||||
private static final byte[] trademarkBytes = new byte[] {
|
||||
(byte) 0xE2, (byte) 0x84, (byte) 0xA2
|
||||
|
||||
@@ -30,13 +30,13 @@ import java.util.HashMap;
|
||||
import java.util.Set;
|
||||
|
||||
import org.ofbiz.base.lang.Factory;
|
||||
import org.ofbiz.base.lang.SourceMonitor;
|
||||
import org.ofbiz.base.lang.SourceMonitored;
|
||||
import org.ofbiz.base.util.Debug;
|
||||
import org.ofbiz.base.util.GroovyUtil;
|
||||
import org.ofbiz.base.util.UtilObject;
|
||||
import org.ofbiz.base.test.GenericTestCaseBase;
|
||||
|
||||
@SourceMonitor("Adam Heath")
|
||||
@SourceMonitored
|
||||
public class UtilObjectTests extends GenericTestCaseBase {
|
||||
public UtilObjectTests(String name) {
|
||||
super(name);
|
||||
|
||||
Reference in New Issue
Block a user