code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
void generateRaXml(Definition def, String outputDir)
{
if (!def.isUseAnnotation())
{
try
{
outputDir = outputDir + File.separatorChar + "src" + File.separatorChar +
"main" + File.separatorChar + "resources";
FileWriter rafw = Utils.createFile("r... | java |
void generateIronjacamarXml(Definition def, String outputDir)
{
try
{
String resourceDir = outputDir + File.separatorChar + "src" + File.separatorChar +
"main" + File.separatorChar + "resources";
writeIronjacamarXml(def, resourceDir);
if (def.getBuild().equals("... | java |
void generateMbeanXml(Definition def, String outputDir)
{
String mbeanName = def.getDefaultValue().toLowerCase(Locale.US);
if (def.getRaPackage() != null && !def.getRaPackage().equals(""))
{
if (def.getRaPackage().indexOf('.') >= 0)
{
mbeanName = def.getRaPackage().sub... | java |
void generatePackageInfo(Definition def, String outputDir, String subDir)
{
try
{
FileWriter fw;
PackageInfoGen phGen;
if (outputDir.equals("test"))
{
fw = Utils.createTestFile("package-info.java", def.getRaPackage(), def.getOutputDir());
phGen ... | java |
void generateEisCode(Definition def)
{
try
{
String clazzName = this.getClass().getPackage().getName() + ".code.TestEisCodeGen";
String javaFile = def.getDefaultValue() + "Handler.java";
FileWriter fw = Utils.createTestFile(javaFile, def.getRaPackage(), def.getOutputDir());
... | java |
static void setThreadContextClassLoader(final ClassLoader cl)
{
AccessController.doPrivileged(new PrivilegedAction<Object>()
{
public Object run()
{
Thread.currentThread().setContextClassLoader(cl);
return null;
}
});
} | java |
static void closeURLClassLoader(final URLClassLoader cl)
{
AccessController.doPrivileged(new PrivilegedAction<Object>()
{
public Object run()
{
if (cl != null)
{
try
{
cl.close();
}
cat... | java |
private static void outputRaDesc(RaImpl raImpl, PrintStream out) throws ParserConfigurationException, SAXException,
IOException, TransformerFactoryConfigurationError, TransformerConfigurationException, TransformerException
{
String raString = "<resource-adapters>" + raImpl.toString() + "</resource-ada... | java |
private static boolean scanArchive(Connector cmd)
{
if (cmd == null)
return true;
if (cmd.getVersion() == Version.V_16 || cmd.getVersion() == Version.V_17)
{
if (!cmd.isMetadataComplete())
return true;
}
return false;
} | java |
private static Map<String, String> getIntrospectedProperties(String clz, URLClassLoader cl, PrintStream error)
{
Map<String, String> result = null;
try
{
Class<?> c = Class.forName(clz, true, cl);
result = new TreeMap<String, String>();
Method[] methods = c.getMethods(... | java |
private static void removeIntrospectedValue(Map<String, String> m, String name)
{
if (m != null)
{
m.remove(name);
if (name.length() == 1)
{
name = name.toUpperCase(Locale.US);
}
else
{
name = name.substring(0, 1).toUpperCase(... | java |
private static String getValueString(XsdString value)
{
if (value == null || value == XsdString.NULL_XSDSTRING)
return "";
else
return value.getValue();
} | java |
public static synchronized void getConnectionListener(String poolName, Object mcp, Object cl,
boolean pooled, boolean interleaving,
Throwable callstack)
{
if (!interleaving)
{
if (po... | java |
public static synchronized void returnConnectionListener(String poolName, Object mcp,
Object cl, boolean kill, boolean interleaving,
Throwable callstack)
{
if (!interleaving)
{
... | java |
public static synchronized void clearConnectionListener(String poolName, Object mcp, Object cl)
{
log.tracef("%s", new TraceEvent(poolName,
Integer.toHexString(System.identityHashCode(mcp)),
TraceEvent.CLEAR_CONNECTION_LISTENER,
... | java |
public static synchronized void enlistConnectionListener(String poolName, Object mcp, Object cl,
String tx,
boolean success, boolean interleaving)
{
if (!interleaving)
{
if (su... | java |
public static synchronized void delistConnectionListener(String poolName, Object mcp, Object cl, String tx,
boolean success, boolean rollbacked, boolean interleaving)
{
if (!rollbacked)
{
if (!interleaving)
{
if (su... | java |
public static synchronized void createConnectionListener(String poolName, Object mcp, Object cl, Object mc,
boolean get, boolean prefill, boolean incrementer,
Throwable callstack)
{
if (get)
... | java |
public static synchronized void destroyConnectionListener(String poolName, Object mcp, Object cl,
boolean ret, boolean idle, boolean invalid,
boolean flush, boolean error,
... | java |
public static synchronized void createManagedConnectionPool(String poolName, Object mcp)
{
log.tracef("%s", new TraceEvent(poolName,
Integer.toHexString(System.identityHashCode(mcp)),
TraceEvent.MANAGED_CONNECTION_POOL_CREATE,
... | java |
public static synchronized void destroyManagedConnectionPool(String poolName, Object mcp)
{
log.tracef("%s", new TraceEvent(poolName,
Integer.toHexString(System.identityHashCode(mcp)),
TraceEvent.MANAGED_CONNECTION_POOL_DESTROY,
... | java |
public static synchronized void pushCCMContext(String key, Throwable callstack)
{
log.tracef("%s", new TraceEvent("CachedConnectionManager", "NONE", TraceEvent.PUSH_CCM_CONTEXT,
"NONE", key, callstack != null ? toString(callstack) : ""));
} | java |
public static synchronized void popCCMContext(String key, Throwable callstack)
{
log.tracef("%s", new TraceEvent("CachedConnectionManager", "NONE", TraceEvent.POP_CCM_CONTEXT,
"NONE", key, callstack != null ? toString(callstack) : ""));
} | java |
public static synchronized void registerCCMConnection(String poolName, Object mcp, Object cl,
Object connection, String key)
{
log.tracef("%s", new TraceEvent(poolName,
Integer.toHexString(System.identityHashCode(mcp... | java |
public static synchronized void unregisterCCMConnection(String poolName, Object mcp, Object cl,
Object connection, String key)
{
log.tracef("%s", new TraceEvent(poolName,
Integer.toHexString(System.identityHashCode... | java |
public static synchronized void unknownCCMConnection(String poolName, Object mcp, Object cl,
Object connection, String key)
{
log.tracef("%s", new TraceEvent(poolName,
Integer.toHexString(System.identityHashCode(mcp))... | java |
public static synchronized void closeCCMConnection(String poolName, Object mcp, Object cl,
Object connection, String key)
{
log.tracef("%s", new TraceEvent(poolName,
Integer.toHexString(System.identityHashCode(mcp)),
... | java |
public static synchronized void ccmUserTransaction(String poolName, Object mcp, Object cl,
Object connection, String key)
{
log.tracef("%s", new TraceEvent(poolName,
Integer.toHexString(System.identityHashCode(mcp)),
... | java |
public <T> T lookup(String name, Class<T> expectedType) throws Throwable
{
if (name == null)
throw new IllegalArgumentException("Name is null");
if (expectedType == null)
throw new IllegalArgumentException("ExpectedType is null");
if (!started)
throw new IllegalStateExc... | java |
private void removeDeployment(File deployment) throws IOException
{
if (deployment == null)
throw new IllegalArgumentException("Deployment is null");
if (deployment.exists() || (shrinkwrapDeployments != null && shrinkwrapDeployments.contains(deployment)))
{
shrinkwrapDeployments.... | java |
public String getValue()
{
return StringUtils.isEmptyTrimmed(resolvedValue) ? (StringUtils.isEmptyTrimmed(defaultValue) ?
"" : defaultValue) : resolvedValue;
} | java |
private Context currentContext()
{
LinkedList<Context> stack = threadContexts.get();
if (stack != null && !stack.isEmpty())
{
return stack.getLast();
}
return null;
} | java |
private boolean closeAll(Context context)
{
boolean unclosed = false;
CloseConnectionSynchronization ccs = getCloseConnectionSynchronization(true);
for (org.ironjacamar.core.connectionmanager.ConnectionManager cm : context.getConnectionManagers())
{
for (org.ironjacamar.core.connect... | java |
private CloseConnectionSynchronization getCloseConnectionSynchronization(boolean createIfNotFound)
{
try
{
Transaction tx = null;
if (transactionIntegration != null)
tx = transactionIntegration.getTransactionManager().getTransaction();
if (tx != null && TxUtils.isA... | java |
private void closeConnection(Object connectionHandle)
{
try
{
Throwable exception = null;
synchronized (connectionStackTraces)
{
exception = connectionStackTraces.remove(connectionHandle);
}
Method m = SecurityActions.getMethod(connectionHandle.g... | java |
public static boolean isActive(Transaction tx)
{
if (tx == null)
return false;
try
{
int status = tx.getStatus();
return status == Status.STATUS_ACTIVE;
}
catch (SystemException error)
{
throw new RuntimeException("Error during isActive(... | java |
public static boolean isUncommitted(Transaction tx)
{
if (tx == null)
return false;
try
{
int status = tx.getStatus();
return status == Status.STATUS_ACTIVE || status == Status.STATUS_MARKED_ROLLBACK;
}
catch (SystemException error)
{
th... | java |
public static boolean isCompleted(Transaction tx)
{
if (tx == null)
return true;
try
{
int status = tx.getStatus();
return status == Status.STATUS_COMMITTED ||
status == Status.STATUS_ROLLEDBACK ||
status == Status.STATUS_NO_TRANSACTION;
... | java |
public static String getStatusAsString(int status)
{
if (status >= Status.STATUS_ACTIVE && status <= Status.STATUS_ROLLING_BACK)
{
return TX_STATUS_STRINGS[status];
}
else
{
return "STATUS_INVALID(" + status + ")";
}
} | java |
public void store(Activations metadata, XMLStreamWriter writer) throws Exception
{
if (metadata != null && writer != null)
{
writer.writeStartElement(XML.ELEMENT_RESOURCE_ADAPTERS);
for (Activation a : metadata.getActivations())
{
writer.writeStartElement(XML.ELEMEN... | java |
public int compareTo(Object o)
{
MBeanData md = (MBeanData) o;
String d1 = objectName.getDomain();
String d2 = md.objectName.getDomain();
int compare = d1.compareTo(d2);
if (compare == 0)
{
String p1 = objectName.getCanonicalKeyPropertyListString();
String p2 = m... | java |
public static ConnectionManager createConnectionManager(TransactionSupportEnum tse,
ManagedConnectionFactory mcf,
CachedConnectionManager ccm,
... | java |
public static MBeanServer getMBeanServer(String domain)
{
try
{
ArrayList<MBeanServer> l = MBeanServerFactory.findMBeanServer(null);
if (l != null)
{
for (MBeanServer ms : l)
{
String[] domains = ms.getDomains();
if (domai... | java |
public static MBeanData getMBeanData(String name) throws JMException
{
MBeanServer server = getMBeanServer();
ObjectName objName = new ObjectName(name);
MBeanInfo info = server.getMBeanInfo(objName);
return new MBeanData(objName, info);
} | java |
public static Object getMBeanAttributeObject(String name, String attrName) throws JMException
{
MBeanServer server = getMBeanServer();
ObjectName objName = new ObjectName(name);
return server.getAttribute(objName, attrName);
} | java |
public static String getMBeanAttribute(String name, String attrName) throws JMException
{
MBeanServer server = getMBeanServer();
ObjectName objName = new ObjectName(name);
String value = null;
try
{
Object attr = server.getAttribute(objName, attrName);
if (attr != nul... | java |
public static AttrResultInfo getMBeanAttributeResultInfo(String name, MBeanAttributeInfo attrInfo)
throws JMException
{
ClassLoader loader = SecurityActions.getThreadContextClassLoader();
MBeanServer server = getMBeanServer();
ObjectName objName = new ObjectName(name);
String attrName =... | java |
public static AttributeList setAttributes(String name, HashMap attributes) throws JMException
{
MBeanServer server = getMBeanServer();
ObjectName objName = new ObjectName(name);
MBeanInfo info = server.getMBeanInfo(objName);
MBeanAttributeInfo[] attributesInfo = info.getAttributes();
At... | java |
public static OpResultInfo invokeOp(String name, int index, String[] args) throws JMException
{
MBeanServer server = getMBeanServer();
ObjectName objName = new ObjectName(name);
MBeanInfo info = server.getMBeanInfo(objName);
MBeanOperationInfo[] opInfo = info.getOperations();
MBeanOpera... | java |
public static OpResultInfo invokeOpByName(String name, String opName, String[] argTypes, String[] args)
throws JMException
{
MBeanServer server = getMBeanServer();
ObjectName objName = new ObjectName(name);
int length = argTypes != null ? argTypes.length : 0;
Object[] typedArgs = new Ob... | java |
@Override
public List<ConnectionDefinition> getConnectionDefinitions()
{
if (connectionDefinitions == null)
return null;
return Collections.unmodifiableList(connectionDefinitions);
} | java |
@Override
public List<AdminObject> getAdminObjects()
{
return adminObjects == null ? null : Collections.unmodifiableList(adminObjects);
} | java |
@Override
public Map<String, String> getConfigProperties()
{
return configProperties == null ? null : Collections.unmodifiableMap(configProperties);
} | java |
@Override
public List<String> getBeanValidationGroups()
{
return beanValidationGroups == null ? null : Collections.unmodifiableList(beanValidationGroups);
} | java |
public void addProvider(UserTransactionProvider provider)
{
UserTransactionProviderImpl impl = new UserTransactionProviderImpl(provider);
delegator.addProvider(impl);
providers.put(provider, impl);
} | java |
public void removeProvider(UserTransactionProvider provider)
{
UserTransactionProviderImpl impl = providers.get(provider);
if (impl != null)
{
delegator.removeProvider(impl);
providers.remove(provider);
}
} | java |
public void setDefaultGroups(String[] value)
{
if (value != null)
{
defaultGroups = Arrays.copyOf(value, value.length);
}
else
{
defaultGroups = null;
}
} | java |
public static org.ironjacamar.core.connectionmanager.pool.Capacity create(
org.ironjacamar.common.api.metadata.common.Capacity metadata,
ClassLoaderPlugin classLoaderPlugin)
{
if (metadata == null)
return DefaultCapacity.INSTANCE;
CapacityIncrementer incrementer = null;
... | java |
private static CapacityIncrementer loadIncrementer(Extension incrementer, ClassLoaderPlugin classLoaderPlugin)
{
Object result = loadExtension(incrementer, classLoaderPlugin);
if (result != null && result instanceof CapacityIncrementer)
{
return (CapacityIncrementer)result;
}
... | java |
private static CapacityDecrementer loadDecrementer(Extension decrementer, ClassLoaderPlugin classLoaderPlugin)
{
Object result = loadExtension(decrementer, classLoaderPlugin);
if (result != null && result instanceof CapacityDecrementer)
{
return (CapacityDecrementer)result;
}
... | java |
private static Object loadExtension(Extension extension, ClassLoaderPlugin classLoaderPlugin)
{
try
{
Class<?> c = classLoaderPlugin.loadClass(extension.getClassName(),
extension.getModuleName(), extension.getModuleSlot());
return c.newInstance();
}
catch (Thr... | java |
private void getPropsString(StringBuilder strProps, List<ConfigPropType> propsList, int indent)
{
for (ConfigPropType props : propsList)
{
for (int i = 0; i < indent; i++)
strProps.append(" ");
strProps.append("<config-property name=\"");
strProps.append(props.getNa... | java |
public static TransactionIsolation forName(String v)
{
if (v != null && !v.trim().equals(""))
{
if ("TRANSACTION_READ_UNCOMMITTED".equalsIgnoreCase(v) || "1".equalsIgnoreCase(v))
{
return TRANSACTION_READ_UNCOMMITTED;
}
else if ("TRANSACTION_READ_COMMITTED"... | java |
public boolean start(String home, File options)
{
File homeDirectory = new File(home);
if (!homeDirectory.exists())
return false;
stop(home);
try
{
List<String> command = new ArrayList<String>();
command.add(java);
command.add("-Dironjacamar.... | java |
public int stop(String home)
{
Process p = instances.get(home);
if (p != null)
{
try
{
p.destroy();
return p.exitValue();
}
catch (Throwable t)
{
return -1;
}
finally
{
instances... | java |
public void registerBootstrapContext(CloneableBootstrapContext bc)
{
if (bc != null)
{
if (bc.getName() == null || bc.getName().trim().equals(""))
throw new IllegalArgumentException("The name of BootstrapContext is invalid: " + bc);
if (!bootstrapContexts.keySet().contains(... | java |
public void unregisterBootstrapContext(CloneableBootstrapContext bc)
{
if (bc != null)
{
if (bc.getName() == null || bc.getName().trim().equals(""))
throw new IllegalArgumentException("The name of BootstrapContext is invalid: " + bc);
if (bootstrapContexts.keySet().contains... | java |
public void setDefaultBootstrapContext(CloneableBootstrapContext bc)
{
if (trace)
log.tracef("Default BootstrapContext: %s", bc);
String currentName = null;
if (defaultBootstrapContext != null)
currentName = defaultBootstrapContext.getName();
defaultBootstrapContext = bc;... | java |
public synchronized CloneableBootstrapContext createBootstrapContext(String id, String name)
{
if (id == null || id.trim().equals(""))
throw new IllegalArgumentException("The id of BootstrapContext is invalid: " + id);
// Check for an active BC
if (activeBootstrapContexts.keySet().contain... | java |
public synchronized void removeBootstrapContext(String id)
{
if (id == null || id.trim().equals(""))
throw new IllegalArgumentException("The id of BootstrapContext is invalid: " + id);
Integer i = refCountBootstrapContexts.get(id);
if (i != null)
{
int newValue = i.intValue... | java |
public static Janitor createJanitor(String type)
{
if (type == null || type.equals(""))
return new MinimalJanitor();
type = type.toLowerCase(Locale.US);
switch (type)
{
case "minimal":
return new MinimalJanitor();
case "full":
return ... | java |
static Properties getSystemProperties()
{
return (Properties)AccessController.doPrivileged(new PrivilegedAction<Object>()
{
public Object run()
{
return System.getProperties();
}
});
} | java |
static URLClassLoader createURLCLassLoader(final URL[] urls, final ClassLoader parent)
{
return (URLClassLoader)AccessController.doPrivileged(new PrivilegedAction<Object>()
{
public Object run()
{
return new URLClassLoader(urls, parent);
}
});
} | java |
private static String readStreamIntoString(Reader reader) throws IOException
{
StringBuilder s = new StringBuilder();
char a[] = new char[0x10000];
while (true)
{
int l = reader.read(a);
if (l == -1)
break;
if (l <= 0)
throw new IOException()... | java |
public static FileWriter createSrcFile(String name, String packageName, String outDir) throws IOException
{
String directory = "src" + File.separatorChar + "main" + File.separatorChar + "java";
return createPackageFile(name, packageName, directory, outDir);
} | java |
private static FileWriter createPackageFile(String name, String packageName, String directory, String outDir)
throws IOException
{
if (packageName != null && !packageName.trim().equals(""))
{
directory = directory + File.separatorChar +
packageName.replace('.', File.separ... | java |
public Set<Address> getAddresses(T physicalAddress)
{
Set<Address> result = new HashSet<Address>();
for (Entry<Address, T> entry : nodes.entrySet())
{
if (entry.getValue() == null || entry.getValue().equals(physicalAddress))
{
result.add(entry.getKey());
}
... | java |
public void localDeltaDoWorkAccepted(Address address)
{
if (trace)
log.tracef("LOCAL_DELTA_DOWORK_ACCEPTED(%s)", address);
DistributedWorkManager dwm = workManagerCoordinator.resolveDistributedWorkManager(address);
if (dwm != null)
{
Collection<NotificationListener> copy =... | java |
private void done()
{
if (longThreadPool != null && isLong)
{
transport.updateLongRunningFree(address,
longThreadPool.getNumberOfFreeThreads() + 1);
}
else
{
transport.updateShortRunningFree(address,
... | java |
private Subject getSubject()
{
return AccessController.doPrivileged(new PrivilegedAction<Subject>()
{
/**
* run method
*/
public Subject run()
{
try
{
String domain = recoverSecurityDomain;
if (domain !=... | java |
@SuppressWarnings("unchecked")
private ManagedConnection open(Subject s) throws ResourceException
{
log.debugf("Open managed connection (%s)", s);
if (recoverMC == null)
recoverMC = mcf.createManagedConnection(s, null);
if (plugin == null)
{
try
{
V... | java |
private void close(ManagedConnection mc)
{
log.debugf("Closing managed connection for recovery (%s)", mc);
if (mc != null)
{
try
{
mc.cleanup();
}
catch (ResourceException ire)
{
log.debugf("Error during recovery cleanup", ire);
... | java |
private Object openConnection(ManagedConnection mc, Subject s) throws ResourceException
{
if (plugin == null)
return null;
log.debugf("Open connection (%s, %s)", mc, s);
return mc.getConnection(s, null);
} | java |
private boolean closeConnection(Object c)
{
if (plugin == null)
return false;
log.debugf("Closing connection for recovery check (%s)", c);
boolean forceClose = false;
if (c != null)
{
try
{
forceClose = !plugin.isValid(c);
}
ca... | java |
protected boolean isCommandAvailable(String command) throws Throwable
{
Socket socket = null;
try
{
socket = new Socket(host, port);
ObjectOutputStream output = new ObjectOutputStream(socket.getOutputStream());
output.writeUTF("getcommand");
output.writeInt(1);
... | java |
void registerConnection(ConnectionManager cm, ConnectionListener cl, Object c)
{
if (cmToCl == null)
cmToCl = new HashMap<ConnectionManager, List<ConnectionListener>>();
List<ConnectionListener> l = cmToCl.get(cm);
if (l == null)
l = new ArrayList<ConnectionListener>(1);
... | java |
boolean unregisterConnection(ConnectionManager cm, ConnectionListener cl, Object c)
{
if (clToC != null && clToC.get(cl) != null)
{
List<Object> l = clToC.get(cl);
return l.remove(c);
}
return false;
} | java |
Set<ConnectionManager> getConnectionManagers()
{
if (cmToCl == null)
return Collections.unmodifiableSet(Collections.emptySet());
return Collections.unmodifiableSet(cmToCl.keySet());
} | java |
List<ConnectionListener> getConnectionListeners(ConnectionManager cm)
{
if (cmToCl == null)
return Collections.unmodifiableList(Collections.emptyList());
List<ConnectionListener> l = cmToCl.get(cm);
if (l == null)
l = Collections.emptyList();
return Collections.unmod... | java |
List<Object> getConnections(ConnectionListener cl)
{
List<Object> l = null;
if (clToC != null)
l = clToC.get(cl);
if (l == null)
l = Collections.emptyList();
return Collections.unmodifiableList(l);
} | java |
void switchConnectionListener(Object c, ConnectionListener from, ConnectionListener to)
{
if (clToC != null && clToC.get(from) != null && clToC.get(to) != null)
{
clToC.get(from).remove(c);
clToC.get(to).add(c);
}
} | java |
void removeConnectionListener(ConnectionManager cm, ConnectionListener cl)
{
if (cmToCl != null && cmToCl.get(cm) != null)
{
cmToCl.get(cm).remove(cl);
clToC.remove(cl);
}
} | java |
public synchronized void forceConfigProperties(List<ConfigProperty> newContents)
{
if (newContents != null)
{
this.configProperties = new ArrayList<ConfigProperty>(newContents);
}
else
{
this.configProperties = new ArrayList<ConfigProperty>(0);
}
} | java |
public String getMessage()
{
String msg = super.getMessage();
String ec = getErrorCode();
if ((msg == null) && (ec == null))
{
return null;
}
if ((msg != null) && (ec != null))
{
return (msg + ", error code: " + ec);
}
return ((msg != null) ?... | java |
void writeClassComment(Definition def, Writer out) throws IOException
{
out.write("/**\n");
out.write(" * " + getClassName(def));
writeEol(out);
out.write(" *\n");
out.write(" * @version $Revision: $\n");
out.write(" */\n");
} | java |
protected void writeSimpleMethodSignature(Writer out, int indent, String javadoc, String signature)
throws IOException
{
writeWithIndent(out, indent, "/**\n");
writeIndent(out, indent);
out.write(javadoc);
writeEol(out);
writeWithIndent(out, indent, " */\n");
writeIndent... | java |
protected void writeMethodSignature(Writer out, int indent, MethodForConnection method) throws IOException
{
writeWithIndent(out, indent, "/**\n");
writeWithIndent(out, indent, " * " + method.getMethodName());
writeEol(out);
for (MethodParam param : method.getParams())
{
writeI... | java |
void writeLeftCurlyBracket(Writer out, int indent) throws IOException
{
writeEol(out);
writeWithIndent(out, indent, "{\n");
} | java |
void writeRightCurlyBracket(Writer out, int indent) throws IOException
{
writeEol(out);
writeWithIndent(out, indent, "}\n");
} | java |
void writeDefaultConstructor(Definition def, Writer out, int indent) throws IOException
{
writeWithIndent(out, indent, "/**\n");
writeWithIndent(out, indent, " * Default constructor\n");
writeWithIndent(out, indent, " */\n");
//constructor
writeWithIndent(out, indent, "public " + getCl... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.