// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package org.slf4j.helpers; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import org.slf4j.IMarkerFactory; import org.slf4j.Marker; // Referenced classes of package org.slf4j.helpers: // BasicMarker public class BasicMarkerFactory implements IMarkerFactory { private final ConcurrentMap markerMap = new ConcurrentHashMap(); public BasicMarkerFactory() { } public boolean detachMarker(String s) { while (s == null || markerMap.remove(s) == null) { return false; } return true; } public boolean exists(String s) { if (s == null) { return false; } else { return markerMap.containsKey(s); } } public Marker getDetachedMarker(String s) { return new BasicMarker(s); } public Marker getMarker(String s) { if (s == null) { throw new IllegalArgumentException("Marker name cannot be null"); } Marker marker = (Marker)markerMap.get(s); Object obj = marker; if (marker == null) { obj = new BasicMarker(s); s = (Marker)markerMap.putIfAbsent(s, obj); if (s != null) { obj = s; } } return ((Marker) (obj)); } }