code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public String getDocumentTypeDeclarationSystemIdentifier() { Document doc; if (m_root.getNodeType() == Node.DOCUMENT_NODE) doc = (Document) m_root; else doc = m_root.getOwnerDocument(); if (null != doc) { DocumentType dtd = doc.getDoctype(); i...
public class class_name { public String getDocumentTypeDeclarationSystemIdentifier() { Document doc; if (m_root.getNodeType() == Node.DOCUMENT_NODE) doc = (Document) m_root; else doc = m_root.getOwnerDocument(); if (null != doc) { DocumentType dtd = doc.getDoctype(); i...
public class class_name { public int[] deduplicateIntArray(int[] original) { if (original == null) return null; IntArray intArray = new IntArray(original); IntArray canonical = canonicalIntArrays.get(intArray); if (canonical == null) { canonical = intArray; canon...
public class class_name { public int[] deduplicateIntArray(int[] original) { if (original == null) return null; IntArray intArray = new IntArray(original); IntArray canonical = canonicalIntArrays.get(intArray); if (canonical == null) { canonical = intArray; // depends on con...
public class class_name { public static byte[] chars2Bytes(final char[] chars) { if (chars == null || chars.length <= 0) return null; int len = chars.length; byte[] bytes = new byte[len]; for (int i = 0; i < len; i++) { bytes[i] = (byte) (chars[i]); } re...
public class class_name { public static byte[] chars2Bytes(final char[] chars) { if (chars == null || chars.length <= 0) return null; int len = chars.length; byte[] bytes = new byte[len]; for (int i = 0; i < len; i++) { bytes[i] = (byte) (chars[i]); // depends on contro...
public class class_name { public synchronized I_CmsScheduledJob getJobInstance() { if (m_jobInstance != null) { if (LOG.isDebugEnabled()) { LOG.debug( Messages.get().getBundle().key( Messages.LOG_REUSING_INSTANCE_1, ...
public class class_name { public synchronized I_CmsScheduledJob getJobInstance() { if (m_jobInstance != null) { if (LOG.isDebugEnabled()) { LOG.debug( Messages.get().getBundle().key( Messages.LOG_REUSING_INSTANCE_1, ...
public class class_name { public static SgClass create(final SgClassPool pool, final Class<?> clasz) { if (pool == null) { throw new IllegalArgumentException("The argument 'pool' cannot be null!"); } if (clasz == null) { throw new IllegalArgumentException("The argum...
public class class_name { public static SgClass create(final SgClassPool pool, final Class<?> clasz) { if (pool == null) { throw new IllegalArgumentException("The argument 'pool' cannot be null!"); } if (clasz == null) { throw new IllegalArgumentException("The argum...
public class class_name { @Override public final byte[] toBytes(Object o) { try { if (o != null) { if (o instanceof byte[]) { return (byte[]) o; } ByteArrayOutputStream bao...
public class class_name { @Override public final byte[] toBytes(Object o) { try { if (o != null) { if (o instanceof byte[]) { return (byte[]) o; // depends on control dependency: [if], data = [none] ...
public class class_name { public static void postorder(final int sequenceLength, int[] sa, int[] lcp, IPostOrderVisitor visitor) { assert sequenceLength <= sa.length && sequenceLength <= lcp.length : "Input sequence length larger than suffix array or the LCP."; final D...
public class class_name { public static void postorder(final int sequenceLength, int[] sa, int[] lcp, IPostOrderVisitor visitor) { assert sequenceLength <= sa.length && sequenceLength <= lcp.length : "Input sequence length larger than suffix array or the LCP."; final D...
public class class_name { public java.util.List<SupportedOperation> getSupportedOperations() { if (supportedOperations == null) { supportedOperations = new com.amazonaws.internal.SdkInternalList<SupportedOperation>(); } return supportedOperations; } }
public class class_name { public java.util.List<SupportedOperation> getSupportedOperations() { if (supportedOperations == null) { supportedOperations = new com.amazonaws.internal.SdkInternalList<SupportedOperation>(); // depends on control dependency: [if], data = [none] } return su...
public class class_name { static ArchivePath getParent(final ArchivePath path) { // Precondition checks assert path != null : "Path must be specified"; // Get the last index of "/" final String resolvedContext = PathUtil.optionallyRemoveFollowingSlash(path.get()); final int las...
public class class_name { static ArchivePath getParent(final ArchivePath path) { // Precondition checks assert path != null : "Path must be specified"; // Get the last index of "/" final String resolvedContext = PathUtil.optionallyRemoveFollowingSlash(path.get()); final int las...
public class class_name { public List<CmsContainerElementBean> getFavoriteList(CmsObject cms) throws CmsException { CmsUser user = cms.getRequestContext().getCurrentUser(); Object obj = user.getAdditionalInfo(ADDINFO_ADE_FAVORITE_LIST); List<CmsContainerElementBean> favList = new ArrayList<Cm...
public class class_name { public List<CmsContainerElementBean> getFavoriteList(CmsObject cms) throws CmsException { CmsUser user = cms.getRequestContext().getCurrentUser(); Object obj = user.getAdditionalInfo(ADDINFO_ADE_FAVORITE_LIST); List<CmsContainerElementBean> favList = new ArrayList<Cm...
public class class_name { public Duration<ClockUnit> getDuration() { PlainTime t1 = this.getTemporalOfClosedStart(); PlainTime t2 = this.getEnd().getTemporal(); if (this.getEnd().isClosed()) { if (t2.getHour() == 24) { if (t1.equals(PlainTime.midnightAtStartOfDay()...
public class class_name { public Duration<ClockUnit> getDuration() { PlainTime t1 = this.getTemporalOfClosedStart(); PlainTime t2 = this.getEnd().getTemporal(); if (this.getEnd().isClosed()) { if (t2.getHour() == 24) { if (t1.equals(PlainTime.midnightAtStartOfDay()...
public class class_name { public void marshall(Scte35DescriptorSettings scte35DescriptorSettings, ProtocolMarshaller protocolMarshaller) { if (scte35DescriptorSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void marshall(Scte35DescriptorSettings scte35DescriptorSettings, ProtocolMarshaller protocolMarshaller) { if (scte35DescriptorSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { private void writeClassDescriptions(BeanReferences references) throws IOException { // write out ref count first, which is the number of instances that are referenced output.writeInt(references.getReferences().size()); // write map of class name to a list of metatype ...
public class class_name { private void writeClassDescriptions(BeanReferences references) throws IOException { // write out ref count first, which is the number of instances that are referenced output.writeInt(references.getReferences().size()); // write map of class name to a list of metatype ...
public class class_name { @Override public void bindView(ViewHolder viewHolder, List<Object> payloads) { super.bindView(viewHolder, payloads); //set the text for the name StringHolder.applyTo(name, viewHolder.name); //set the text for the description or hide StringHolder.ap...
public class class_name { @Override public void bindView(ViewHolder viewHolder, List<Object> payloads) { super.bindView(viewHolder, payloads); //set the text for the name StringHolder.applyTo(name, viewHolder.name); //set the text for the description or hide StringHolder.ap...
public class class_name { @Override public void sawOpcode(int seen) { XField userValue = null; try { stack.precomputation(this); if ((seen == Const.INVOKEVIRTUAL) || (seen == Const.INVOKEINTERFACE) || (seen == Const.INVOKEDYNAMIC)) { String sig = getSigConst...
public class class_name { @Override public void sawOpcode(int seen) { XField userValue = null; try { stack.precomputation(this); // depends on control dependency: [try], data = [none] if ((seen == Const.INVOKEVIRTUAL) || (seen == Const.INVOKEINTERFACE) || (seen == Const.INV...
public class class_name { public static String getSLLL(String[] soilParas) { if (soilParas != null && soilParas.length >= 3) { return divide(calcMoisture1500Kpa(soilParas[0], soilParas[1], soilParas[2]), "100", 3); } else { return null; } } }
public class class_name { public static String getSLLL(String[] soilParas) { if (soilParas != null && soilParas.length >= 3) { return divide(calcMoisture1500Kpa(soilParas[0], soilParas[1], soilParas[2]), "100", 3); // depends on control dependency: [if], data = [(soilParas] } else { ...
public class class_name { public static IConjunct getUnsatisfied( IConjunct condition, PropertySet properties) { Conjunction unsatisfied = new Conjunction(); for( Iterator<IDisjunct> disjuncts = condition.getDisjuncts(); disjuncts.hasNext();) { IDisjunct disjunct = disjuncts.next(); ...
public class class_name { public static IConjunct getUnsatisfied( IConjunct condition, PropertySet properties) { Conjunction unsatisfied = new Conjunction(); for( Iterator<IDisjunct> disjuncts = condition.getDisjuncts(); disjuncts.hasNext();) { IDisjunct disjunct = disjuncts.next(); ...
public class class_name { public int compareTo(CandidateField o) { if (o == null) { return 1; } int myWeight = this.weight == null ? 0 : this.weight.toInteger(); int otherWeight = o.getWeight() == null ? 0 : o.getWeight().toInteger(); if(myWeight > otherWeight) { return 1; } if(myWeight < oth...
public class class_name { public int compareTo(CandidateField o) { if (o == null) { return 1; // depends on control dependency: [if], data = [none] } int myWeight = this.weight == null ? 0 : this.weight.toInteger(); int otherWeight = o.getWeight() == null ? 0 : o.getWeight().toInteger(); if(myWeight...
public class class_name { public void disconnect() throws Exception { if (connection != null) { try { if (connection instanceof Closeable) { ((Closeable) connection).close(); } else { try { connection.g...
public class class_name { public void disconnect() throws Exception { if (connection != null) { try { if (connection instanceof Closeable) { ((Closeable) connection).close(); } else { try { connection.g...
public class class_name { @Override public int compareTo(JSONDocFieldWrapper o) { if(this.getOrder().equals(o.getOrder())) { return this.getField().getName().compareTo(o.getField().getName()); } else { return this.getOrder() - o.getOrder(); } } }
public class class_name { @Override public int compareTo(JSONDocFieldWrapper o) { if(this.getOrder().equals(o.getOrder())) { return this.getField().getName().compareTo(o.getField().getName()); // depends on control dependency: [if], data = [none] } else { return this.getOrder() - o.getOrder(); // depends on...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfTransportationObject() { if (_GenericApplicationPropertyOfTransportationObject == null) { _GenericApplicationPropertyOfTransportationObject = new ArrayList<JAXBElement<Object>>(); } return thi...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfTransportationObject() { if (_GenericApplicationPropertyOfTransportationObject == null) { _GenericApplicationPropertyOfTransportationObject = new ArrayList<JAXBElement<Object>>(); // depends on control depend...
public class class_name { private Set<Tuple> toEdgeSet(int[] mapping) { Set<Tuple> edges = new HashSet<Tuple>(mapping.length * 2); for (int u = 0; u < g.length; u++) { for (int v : g[u]) { edges.add(new Tuple(mapping[u], mapping[v])); } } return e...
public class class_name { private Set<Tuple> toEdgeSet(int[] mapping) { Set<Tuple> edges = new HashSet<Tuple>(mapping.length * 2); for (int u = 0; u < g.length; u++) { for (int v : g[u]) { edges.add(new Tuple(mapping[u], mapping[v])); // depends on control dependency: [for],...
public class class_name { public void add(ASN1Set entry) { ASN1EncodableVector v = new ASN1EncodableVector(); int size = seq.size(); for (int i = 0; i < size; i++) { v.add(seq.getObjectAt(i)); } v.add(entry); seq = new DERSequence(v); } }
public class class_name { public void add(ASN1Set entry) { ASN1EncodableVector v = new ASN1EncodableVector(); int size = seq.size(); for (int i = 0; i < size; i++) { v.add(seq.getObjectAt(i)); // depends on control dependency: [for], data = [i] } v.add(entry); ...
public class class_name { public Set<ElementDescriptor<?>> getProperties() { if (mPropStatByProperty == null) { return null; } return Collections.unmodifiableSet(mPropStatByProperty.keySet()); } }
public class class_name { public Set<ElementDescriptor<?>> getProperties() { if (mPropStatByProperty == null) { return null; // depends on control dependency: [if], data = [none] } return Collections.unmodifiableSet(mPropStatByProperty.keySet()); } }
public class class_name { public void connectUsingTrmWithTargetData(String targetType, String targetSignificance, String target) throws ResourceException { final String methodName = "connectUsingTrmWithTargetData"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled...
public class class_name { public void connectUsingTrmWithTargetData(String targetType, String targetSignificance, String target) throws ResourceException { final String methodName = "connectUsingTrmWithTargetData"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled...
public class class_name { public static MutableLongTuple clamp( LongTuple t, long min, long max, MutableLongTuple result) { result = validate(t, result); for (int i=0; i<result.getSize(); i++) { long v = t.get(i); long r = Math.min(max, Math.max(min, v...
public class class_name { public static MutableLongTuple clamp( LongTuple t, long min, long max, MutableLongTuple result) { result = validate(t, result); for (int i=0; i<result.getSize(); i++) { long v = t.get(i); long r = Math.min(max, Math.max(min, v...
public class class_name { public JobExecution completeNewJobWithRestart(String jobXMLName, Properties jobParameters, int restartAttempts) throws IllegalStateException { long executionId = jobOp.start(jobXMLName, jobParameters); JobExecution jobExec = waitForFinish(executionId); if (jobExec.get...
public class class_name { public JobExecution completeNewJobWithRestart(String jobXMLName, Properties jobParameters, int restartAttempts) throws IllegalStateException { long executionId = jobOp.start(jobXMLName, jobParameters); JobExecution jobExec = waitForFinish(executionId); if (jobExec.get...
public class class_name { protected synchronized void fireOutputChangeEvent(OUTPUT_EVENT event) { OutputChangeEvent oce = new OutputChangeEvent(this, event); for (OutputChangeListener pcl : outputListeners) { pcl.outputChanged(oce); } } }
public class class_name { protected synchronized void fireOutputChangeEvent(OUTPUT_EVENT event) { OutputChangeEvent oce = new OutputChangeEvent(this, event); for (OutputChangeListener pcl : outputListeners) { pcl.outputChanged(oce); // depends on control dependency: [for], data = [pcl] ...
public class class_name { private void addDisallowedConstructors(TypeDeclaration node) { TypeElement typeElement = node.getTypeElement(); TypeElement superClass = ElementUtil.getSuperclass(typeElement); if (ElementUtil.isPrivateInnerType(typeElement) || ElementUtil.isAbstract(typeElement) || superC...
public class class_name { private void addDisallowedConstructors(TypeDeclaration node) { TypeElement typeElement = node.getTypeElement(); TypeElement superClass = ElementUtil.getSuperclass(typeElement); if (ElementUtil.isPrivateInnerType(typeElement) || ElementUtil.isAbstract(typeElement) || superC...
public class class_name { public static String getAnnotatedTypeIdentifier(AnnotatedType annotatedType, Class<?> extensionClass) { //We use the symbolic name as a compromise between makeing the ID unique enough to allow multiple annotated types based on the same type //to quote the javadoc: " This meth...
public class class_name { public static String getAnnotatedTypeIdentifier(AnnotatedType annotatedType, Class<?> extensionClass) { //We use the symbolic name as a compromise between makeing the ID unique enough to allow multiple annotated types based on the same type //to quote the javadoc: " This meth...
public class class_name { public static List<LineString> getSectionsAtInterval( LineString line, double interval, double width, double startFrom, double endAt ) { if (interval <= 0) { throw new IllegalArgumentException("Interval needs to be > 0."); } double length = line...
public class class_name { public static List<LineString> getSectionsAtInterval( LineString line, double interval, double width, double startFrom, double endAt ) { if (interval <= 0) { throw new IllegalArgumentException("Interval needs to be > 0."); } double length = line...
public class class_name { public static String parseEchoErrorStatement(String statement) { Matcher matcher = EchoErrorToken.matcher(statement); if (matcher.matches()) { String commandWordTerminator = matcher.group(1); if (OneWhitespace.matcher(commandWordTerminator).matches()) {...
public class class_name { public static String parseEchoErrorStatement(String statement) { Matcher matcher = EchoErrorToken.matcher(statement); if (matcher.matches()) { String commandWordTerminator = matcher.group(1); if (OneWhitespace.matcher(commandWordTerminator).matches()) {...
public class class_name { public void printJob(PrinterJob job) { Frame frame = this.getFrame(); dialog = new PrintDialog(frame, false); dialog.pack(); if (frame != null) this.centerDialogInFrame(dialog, frame); Map<String,Object> map = new Hash...
public class class_name { public void printJob(PrinterJob job) { Frame frame = this.getFrame(); dialog = new PrintDialog(frame, false); dialog.pack(); if (frame != null) this.centerDialogInFrame(dialog, frame); Map<String,Object> map = new Hash...
public class class_name { @Nullable private Module getModuleFromScopeRoot(Node moduleBody) { if (moduleBody.isModuleBody()) { // TODO(b/128633181): handle ES modules here Node scriptNode = moduleBody.getParent(); checkState( scriptNode.getBooleanProp(Node.GOOG_MODULE), "Type...
public class class_name { @Nullable private Module getModuleFromScopeRoot(Node moduleBody) { if (moduleBody.isModuleBody()) { // TODO(b/128633181): handle ES modules here Node scriptNode = moduleBody.getParent(); checkState( scriptNode.getBooleanProp(Node.GOOG_MODULE), "Type...
public class class_name { List<IntermediateResultPartition> finishAllBlockingPartitions() { List<IntermediateResultPartition> finishedBlockingPartitions = null; for (IntermediateResultPartition partition : resultPartitions.values()) { if (partition.getResultType().isBlocking() && partition.markFinished()) { ...
public class class_name { List<IntermediateResultPartition> finishAllBlockingPartitions() { List<IntermediateResultPartition> finishedBlockingPartitions = null; for (IntermediateResultPartition partition : resultPartitions.values()) { if (partition.getResultType().isBlocking() && partition.markFinished()) { ...
public class class_name { public static RemoteException RemoteException(String message, Throwable cause) { RemoteException remote = null; // ----------------------------------------------------------------------- // If a cause was not specified...
public class class_name { public static RemoteException RemoteException(String message, Throwable cause) { RemoteException remote = null; // ----------------------------------------------------------------------- // If a cause was not specified...
public class class_name { public void add(Object key, Object value) { Object existing = mMap.get(key); if (existing instanceof List) { if (value instanceof List) { ((List)existing).addAll((List)value); } else { ((List)existing).add(val...
public class class_name { public void add(Object key, Object value) { Object existing = mMap.get(key); if (existing instanceof List) { if (value instanceof List) { ((List)existing).addAll((List)value); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public int compareTo(Duration otherDuration) { int cmp = Long.compare(seconds, otherDuration.seconds); if (cmp != 0) { return cmp; } return nanos - otherDuration.nanos; } }
public class class_name { @Override public int compareTo(Duration otherDuration) { int cmp = Long.compare(seconds, otherDuration.seconds); if (cmp != 0) { return cmp; // depends on control dependency: [if], data = [none] } return nanos - otherDuration.nanos; } }
public class class_name { public static String maskRegex(String input, String key, String name) { Map<String, Object> regexConfig = (Map<String, Object>) config.get(MASK_TYPE_REGEX); if (regexConfig != null) { Map<String, Object> keyConfig = (Map<String, Object>) regexConfig.get(key); ...
public class class_name { public static String maskRegex(String input, String key, String name) { Map<String, Object> regexConfig = (Map<String, Object>) config.get(MASK_TYPE_REGEX); if (regexConfig != null) { Map<String, Object> keyConfig = (Map<String, Object>) regexConfig.get(key); ...
public class class_name { @Override public void onReceive(Object message) { if (message instanceof OnAppVisible) { onAppVisible(); } else if (message instanceof OnAppHidden) { onAppHidden(); } else if (message instanceof PerformOnline) { performOnline(); ...
public class class_name { @Override public void onReceive(Object message) { if (message instanceof OnAppVisible) { onAppVisible(); // depends on control dependency: [if], data = [none] } else if (message instanceof OnAppHidden) { onAppHidden(); // depends on control dependen...
public class class_name { private void extractInstructions(InstructionGroup group) { for (InstructionGraphNode node : group.getNodes()) { if (node != group.getRoot()) { AbstractInsnNode insn = node.getInstruction(); method.instructions.remove(insn); g...
public class class_name { private void extractInstructions(InstructionGroup group) { for (InstructionGraphNode node : group.getNodes()) { if (node != group.getRoot()) { AbstractInsnNode insn = node.getInstruction(); method.instructions.remove(insn); // depends on con...
public class class_name { @Override public AsyncContext startAsync() { try { collaborator.preInvoke(componentMetaData); return request.startAsync(); } finally { collaborator.postInvoke(); } } }
public class class_name { @Override public AsyncContext startAsync() { try { collaborator.preInvoke(componentMetaData); // depends on control dependency: [try], data = [none] return request.startAsync(); // depends on control dependency: [try], data = [none] } finally { ...
public class class_name { protected String getProjectRelativePath(File file) { String path = file.getAbsolutePath(); String prefix = project.getBasedir().getAbsolutePath(); if (path.startsWith(prefix)) { path = path.substring(prefix.length() + 1); } if (File.separatorChar != '/') { path = path.replace(...
public class class_name { protected String getProjectRelativePath(File file) { String path = file.getAbsolutePath(); String prefix = project.getBasedir().getAbsolutePath(); if (path.startsWith(prefix)) { path = path.substring(prefix.length() + 1); // depends on control dependency: [if], data = [none] } if...
public class class_name { public boolean isHandlingCssImage(String cssResourcePath) { boolean isHandlingCssImage = false; ResourceGenerator generator = resolveResourceGenerator(cssResourcePath); if (generator != null && cssImageResourceGeneratorRegistry.contains(generator)) { isHandlingCssImage = true; } ...
public class class_name { public boolean isHandlingCssImage(String cssResourcePath) { boolean isHandlingCssImage = false; ResourceGenerator generator = resolveResourceGenerator(cssResourcePath); if (generator != null && cssImageResourceGeneratorRegistry.contains(generator)) { isHandlingCssImage = true; // d...
public class class_name { public boolean isDeleted(QPath itemPath) { ItemState lastState = changesLog.getItemState(itemPath); if (lastState != null && lastState.isDeleted()) { return true; } return false; } }
public class class_name { public boolean isDeleted(QPath itemPath) { ItemState lastState = changesLog.getItemState(itemPath); if (lastState != null && lastState.isDeleted()) { return true; // depends on control dependency: [if], data = [none] } return false; } }
public class class_name { public ObjectProperty<PathWindingRule> windingRuleProperty() { if (this.windingRule == null) { this.windingRule = new SimpleObjectProperty<>(this, MathFXAttributeNames.WINDING_RULE, DEFAULT_WINDING_RULE); } return this.windingRule; } }
public class class_name { public ObjectProperty<PathWindingRule> windingRuleProperty() { if (this.windingRule == null) { this.windingRule = new SimpleObjectProperty<>(this, MathFXAttributeNames.WINDING_RULE, DEFAULT_WINDING_RULE); // depends on control dependency: [if], data = [none] } return this.windingRule...
public class class_name { public static String disentangle( final BiMap<Character, ObfuscationRule<Character, Character>> rules, final String obfuscated) { boolean processed = false; char currentChar; Character currentCharacter; final StringBuilder sb = new StringBuilder(); for (int i = 0; i < obfuscate...
public class class_name { public static String disentangle( final BiMap<Character, ObfuscationRule<Character, Character>> rules, final String obfuscated) { boolean processed = false; char currentChar; Character currentCharacter; final StringBuilder sb = new StringBuilder(); for (int i = 0; i < obfuscate...
public class class_name { final void helpQuiescePool(WorkQueue w) { for (boolean active = true;;) { ForkJoinTask<?> localTask; // exhaust local queue while ((localTask = w.nextLocalTask()) != null) localTask.doExec(); WorkQueue q = findNonEmptyStealQueue(w); ...
public class class_name { final void helpQuiescePool(WorkQueue w) { for (boolean active = true;;) { ForkJoinTask<?> localTask; // exhaust local queue while ((localTask = w.nextLocalTask()) != null) localTask.doExec(); WorkQueue q = findNonEmptyStealQueue(w); ...
public class class_name { private void bend(int[] indexes, int from, int to, IAtom pivotAtm, double r) { double s = Math.sin(r); double c = Math.cos(r); Point2d pivot = pivotAtm.getPoint2d(); for (int i = from; i < to; i++) { Point2d p = mol.getAtom(indexes[i]).getPoint2d();...
public class class_name { private void bend(int[] indexes, int from, int to, IAtom pivotAtm, double r) { double s = Math.sin(r); double c = Math.cos(r); Point2d pivot = pivotAtm.getPoint2d(); for (int i = from; i < to; i++) { Point2d p = mol.getAtom(indexes[i]).getPoint2d();...
public class class_name { public java.util.List<String> getLaunchTemplateIds() { if (launchTemplateIds == null) { launchTemplateIds = new com.amazonaws.internal.SdkInternalList<String>(); } return launchTemplateIds; } }
public class class_name { public java.util.List<String> getLaunchTemplateIds() { if (launchTemplateIds == null) { launchTemplateIds = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return launchTemplateIds; } }
public class class_name { public void addMapping(Mapping mapping) { if (mapping != null) { mappings.put(mapping.getType(), mapping); } } }
public class class_name { public void addMapping(Mapping mapping) { if (mapping != null) { mappings.put(mapping.getType(), mapping); // depends on control dependency: [if], data = [(mapping] } } }
public class class_name { public ScriptTaskActivityBehavior createScriptTaskActivityBehavior(ScriptTask scriptTask) { String language = scriptTask.getScriptFormat(); if (language == null) { language = ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE; } return new ScriptTaskActivi...
public class class_name { public ScriptTaskActivityBehavior createScriptTaskActivityBehavior(ScriptTask scriptTask) { String language = scriptTask.getScriptFormat(); if (language == null) { language = ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE; // depends on control dependency: [if], data ...
public class class_name { @Trivial private void addAttributes(Attributes sourceAttrs, Attributes descAttrs) { for (NamingEnumeration<?> neu = sourceAttrs.getAll(); neu.hasMoreElements();) { descAttrs.put((Attribute) neu.nextElement()); } } }
public class class_name { @Trivial private void addAttributes(Attributes sourceAttrs, Attributes descAttrs) { for (NamingEnumeration<?> neu = sourceAttrs.getAll(); neu.hasMoreElements();) { descAttrs.put((Attribute) neu.nextElement()); // depends on control dependency: [for], data = [neu] ...
public class class_name { private Set<String> validateJobId(final Job job) { final Set<String> errors = Sets.newHashSet(); final JobId jobId = job.getId(); if (jobId == null) { errors.add("Job id was not specified."); return errors; } final String jobIdVersion = jobId.getVersion(); ...
public class class_name { private Set<String> validateJobId(final Job job) { final Set<String> errors = Sets.newHashSet(); final JobId jobId = job.getId(); if (jobId == null) { errors.add("Job id was not specified."); // depends on control dependency: [if], data = [none] return errors; // depe...
public class class_name { public void addServerNotificationListener(RESTRequest request, ServerNotificationRegistration serverNotificationRegistration, JSONConverter converter) { NotificationTargetInformation nti = toNotificationTargetInformation(request, serverNotificationRegistration.objectName.getCanonicalN...
public class class_name { public void addServerNotificationListener(RESTRequest request, ServerNotificationRegistration serverNotificationRegistration, JSONConverter converter) { NotificationTargetInformation nti = toNotificationTargetInformation(request, serverNotificationRegistration.objectName.getCanonicalN...
public class class_name { public void marshall(ListThingTypesRequest listThingTypesRequest, ProtocolMarshaller protocolMarshaller) { if (listThingTypesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(ListThingTypesRequest listThingTypesRequest, ProtocolMarshaller protocolMarshaller) { if (listThingTypesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public ChronoLocalDateTime<?> localDateTime(TemporalAccessor temporal) { try { ChronoLocalDate date = date(temporal); return date.atTime(LocalTime.from(temporal)); } catch (DateTimeException ex) { throw new DateTimeException("Unable to obtai...
public class class_name { public ChronoLocalDateTime<?> localDateTime(TemporalAccessor temporal) { try { ChronoLocalDate date = date(temporal); return date.atTime(LocalTime.from(temporal)); // depends on control dependency: [try], data = [none] } catch (DateTimeException ex) { ...
public class class_name { public String print(Enum<?> value) { int index = value.ordinal(); if (this.textForms.size() <= index) { return value.name(); } else { return this.textForms.get(index); } } }
public class class_name { public String print(Enum<?> value) { int index = value.ordinal(); if (this.textForms.size() <= index) { return value.name(); // depends on control dependency: [if], data = [none] } else { return this.textForms.get(index); // depends on control...
public class class_name { public static Furnace getInstance() { try { final BootstrapClassLoader loader = new BootstrapClassLoader("bootpath"); return getInstance(FurnaceFactory.class.getClassLoader(), loader); } catch (Exception e) { throw new RuntimeExcepti...
public class class_name { public static Furnace getInstance() { try { final BootstrapClassLoader loader = new BootstrapClassLoader("bootpath"); return getInstance(FurnaceFactory.class.getClassLoader(), loader); // depends on control dependency: [try], data = [none] } catch ...
public class class_name { @Override public ExtensionRating getRating() { if (this.overwrites.containsKey(RatingExtension.FIELD_AVERAGE_VOTE)) { return (ExtensionRating) this.overwrites.get(RatingExtension.FIELD_AVERAGE_VOTE); } return getWrapped().getRating(); } }
public class class_name { @Override public ExtensionRating getRating() { if (this.overwrites.containsKey(RatingExtension.FIELD_AVERAGE_VOTE)) { return (ExtensionRating) this.overwrites.get(RatingExtension.FIELD_AVERAGE_VOTE); // depends on control dependency: [if], data = [none] } ...
public class class_name { static Text asEngineText(final IText text) { if (text instanceof Text) { return (Text) text; } return new Text(text.getText(), text.getTemplateName(), text.getLine(), text.getCol()); } }
public class class_name { static Text asEngineText(final IText text) { if (text instanceof Text) { return (Text) text; // depends on control dependency: [if], data = [none] } return new Text(text.getText(), text.getTemplateName(), text.getLine(), text.getCol()); } }
public class class_name { public static PasswordAuthentication requestPasswordAuthentication( InetAddress addr, int port, String protocol, Stri...
public class class_name { public static PasswordAuthentication requestPasswordAuthentication( InetAddress addr, int port, String protocol, Stri...
public class class_name { public static final String extractPackageName(String className) { if (className == null || className.trim().isEmpty()) { return ""; } final int idx = className.lastIndexOf('.'); if (idx == -1) { return ""; } else { return className.substring(0, idx); } } }
public class class_name { public static final String extractPackageName(String className) { if (className == null || className.trim().isEmpty()) { return ""; // depends on control dependency: [if], data = [none] } final int idx = className.lastIndexOf('.'); if (idx == -1) { return ""; // depends on co...
public class class_name { @Override public void close() { if (closed) return; closed = true; try { channel.close(); } catch (Exception e) { logger.log("Failed to close channel for: '" + name + "'", e); } } }
public class class_name { @Override public void close() { if (closed) return; closed = true; try { channel.close(); // depends on control dependency: [try], data = [none] } catch (Exception e) { logger.log("Failed to close channel for: '" + name + "'", e); } // depends on co...
public class class_name { private void cancelStream(ChannelHandlerContext ctx, CancelClientStreamCommand cmd, ChannelPromise promise) { NettyClientStream.TransportState stream = cmd.stream(); Status reason = cmd.reason(); if (reason != null) { stream.transportReportStatus(reason, true, new Meta...
public class class_name { private void cancelStream(ChannelHandlerContext ctx, CancelClientStreamCommand cmd, ChannelPromise promise) { NettyClientStream.TransportState stream = cmd.stream(); Status reason = cmd.reason(); if (reason != null) { stream.transportReportStatus(reason, true, new Meta...
public class class_name { @Override protected Query parseQuery( TokenStream tokens, TypeSystem typeSystem ) { Query query = super.parseQuery(tokens, typeSystem); // See if we have to rewrite the JCR-SQL-style join ... if (query.source() instanceof JoinableSou...
public class class_name { @Override protected Query parseQuery( TokenStream tokens, TypeSystem typeSystem ) { Query query = super.parseQuery(tokens, typeSystem); // See if we have to rewrite the JCR-SQL-style join ... if (query.source() instanceof JoinableSou...
public class class_name { public JSONObject basicGeneralUrl(String url, HashMap<String, String> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("url", url); if (options != null) { request.addBody(options); } r...
public class class_name { public JSONObject basicGeneralUrl(String url, HashMap<String, String> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("url", url); if (options != null) { request.addBody(options); // depends on contr...
public class class_name { private static Substitution createUnifier(Term term1, Term term2, TermFactory termFactory) { if (!(term1 instanceof Variable) && !(term2 instanceof Variable)) { // neither is a variable, impossible to unify unless the two terms are // equal, in which case the...
public class class_name { private static Substitution createUnifier(Term term1, Term term2, TermFactory termFactory) { if (!(term1 instanceof Variable) && !(term2 instanceof Variable)) { // neither is a variable, impossible to unify unless the two terms are // equal, in which case the...
public class class_name { private void pauseConsumers(SIMPMessage msg, long retryInterval) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "pauseConsumers", new Object[] { msg, Long.valueOf(retryInterval) }); // We need to lock the consumerPoints to c...
public class class_name { private void pauseConsumers(SIMPMessage msg, long retryInterval) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "pauseConsumers", new Object[] { msg, Long.valueOf(retryInterval) }); // We need to lock the consumerPoints to c...
public class class_name { public static Map<String, String> convertJsObjectToMap(JavaScriptObject jso) { Map<String, String> result = new HashMap<String, String>(); JSONObject json = new JSONObject(jso); for (String key : json.keySet()) { if ((json.get(key) != null) && (json.get(ke...
public class class_name { public static Map<String, String> convertJsObjectToMap(JavaScriptObject jso) { Map<String, String> result = new HashMap<String, String>(); JSONObject json = new JSONObject(jso); for (String key : json.keySet()) { if ((json.get(key) != null) && (json.get(ke...
public class class_name { public void skipWhitespace(List<Token> tokens) { while (pos < input.length() && (input.charAt(pos) == '\n' || input.charAt(pos) == '\t')) { pos++; } } }
public class class_name { public void skipWhitespace(List<Token> tokens) { while (pos < input.length() && (input.charAt(pos) == '\n' || input.charAt(pos) == '\t')) { pos++; // depends on control dependency: [while], data = [none] } } }
public class class_name { public ModifyCacheClusterRequest withNewAvailabilityZones(String... newAvailabilityZones) { if (this.newAvailabilityZones == null) { setNewAvailabilityZones(new com.amazonaws.internal.SdkInternalList<String>(newAvailabilityZones.length)); } for (String ele ...
public class class_name { public ModifyCacheClusterRequest withNewAvailabilityZones(String... newAvailabilityZones) { if (this.newAvailabilityZones == null) { setNewAvailabilityZones(new com.amazonaws.internal.SdkInternalList<String>(newAvailabilityZones.length)); // depends on control dependency: ...
public class class_name { private String getSourceCodePath(StackTraceElement stackTraceElement) { Objects.requireNonNull(stackTraceElement, Required.STACK_TRACE_ELEMENT.toString()); String packageName = stackTraceElement.getClassName(); int position = packageName.lastIndexOf('.'); if (...
public class class_name { private String getSourceCodePath(StackTraceElement stackTraceElement) { Objects.requireNonNull(stackTraceElement, Required.STACK_TRACE_ELEMENT.toString()); String packageName = stackTraceElement.getClassName(); int position = packageName.lastIndexOf('.'); if (...
public class class_name { private boolean createSQLEntityFromDao(final SQLiteDatabaseSchema schema, TypeElement dataSource, String daoName) { TypeElement daoElement = globalDaoElements.get(daoName); if (daoElement == null) { String msg = String.format("Data source %s references a DAO %s without @%s annotation"...
public class class_name { private boolean createSQLEntityFromDao(final SQLiteDatabaseSchema schema, TypeElement dataSource, String daoName) { TypeElement daoElement = globalDaoElements.get(daoName); if (daoElement == null) { String msg = String.format("Data source %s references a DAO %s without @%s annotation"...
public class class_name { @Override public String getInfo() { StringBuilder b = new StringBuilder(); b.append("-----------------" + NL + "Section Table" + NL + "-----------------" + NL + NL); int i = 0; for(SectionHeader header : headers) { i++; ...
public class class_name { @Override public String getInfo() { StringBuilder b = new StringBuilder(); b.append("-----------------" + NL + "Section Table" + NL + "-----------------" + NL + NL); int i = 0; for(SectionHeader header : headers) { i++; // depend...
public class class_name { public PathMatcher.PathMatch<T> match(String path){ if (!exactPathMatches.isEmpty()) { T match = getExactPath(path); if (match != null) { UndertowLogger.REQUEST_LOGGER.debugf("Matched exact path %s", path); return new PathMatcher.PathMatch<>(path, "", match); } } int l...
public class class_name { public PathMatcher.PathMatch<T> match(String path){ if (!exactPathMatches.isEmpty()) { T match = getExactPath(path); if (match != null) { UndertowLogger.REQUEST_LOGGER.debugf("Matched exact path %s", path); // depends on control dependency: [if], data = [none] return new PathM...
public class class_name { @Override public void triggeredJobComplete(final OperableTrigger trigger, final JobDetail jobDetail, final Trigger.CompletedExecutionInstruction triggerInstCode) { try { doWithLock(new LockCallbackWithoutResult() { @Override public Void ...
public class class_name { @Override public void triggeredJobComplete(final OperableTrigger trigger, final JobDetail jobDetail, final Trigger.CompletedExecutionInstruction triggerInstCode) { try { doWithLock(new LockCallbackWithoutResult() { @Override public Void ...
public class class_name { @Override public String getChangedProperties(WebAppSecurityConfig original) { WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig(); if (globalConfig != null) { return globalConfig.getChangedProperties(original); ...
public class class_name { @Override public String getChangedProperties(WebAppSecurityConfig original) { WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig(); if (globalConfig != null) { return globalConfig.getChangedProperties(original); // ...
public class class_name { public static String getServer() { final StringBuilder serverBuilder = new StringBuilder(getServerScheme()).append("://").append(getServerHost()); final String port = getServerPort(); if (StringUtils.isNotBlank(port) && !"80".equals(port) && !"443".equals(port)) { ...
public class class_name { public static String getServer() { final StringBuilder serverBuilder = new StringBuilder(getServerScheme()).append("://").append(getServerHost()); final String port = getServerPort(); if (StringUtils.isNotBlank(port) && !"80".equals(port) && !"443".equals(port)) { ...
public class class_name { public void delegateTo(final ClassLoader classLoader, final boolean isParent) { if (classLoader == null) { return; } // Check if this is a parent before checking if the classloader is already in the delegatedTo set, // so that if the classloader is ...
public class class_name { public void delegateTo(final ClassLoader classLoader, final boolean isParent) { if (classLoader == null) { return; // depends on control dependency: [if], data = [none] } // Check if this is a parent before checking if the classloader is already in the dele...
public class class_name { public boolean updateAttribute(final Attribute attribute) { if (!this.sentAttrSpecifications) { log.error("Haven't sent type specifications yet, can't send solutions."); return false; } AttributeUpdateMessage message = new AttributeUpdateMessage(); message.setCreateId(this.cre...
public class class_name { public boolean updateAttribute(final Attribute attribute) { if (!this.sentAttrSpecifications) { log.error("Haven't sent type specifications yet, can't send solutions."); // depends on control dependency: [if], data = [none] return false; // depends on control dependency: [if], data = ...
public class class_name { public void generate() throws CodeGenerationException { for (AnnotationTypeDeclaration atd : _atds) { Collection<Declaration> decls = getAnnotationProcessorEnvironment().getDeclarationsAnnotatedWith(atd); for (Declaration decl : decls) {...
public class class_name { public void generate() throws CodeGenerationException { for (AnnotationTypeDeclaration atd : _atds) { Collection<Declaration> decls = getAnnotationProcessorEnvironment().getDeclarationsAnnotatedWith(atd); for (Declaration decl : decls) {...
public class class_name { public void marshall(UpdateApiKeyRequest updateApiKeyRequest, ProtocolMarshaller protocolMarshaller) { if (updateApiKeyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(UpdateApiKeyRequest updateApiKeyRequest, ProtocolMarshaller protocolMarshaller) { if (updateApiKeyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { @Override public Set<String> getRequestValue(final Request request) { if (isPresent(request)) { return getNewSelections(request); } else { return getValue(); } } }
public class class_name { @Override public Set<String> getRequestValue(final Request request) { if (isPresent(request)) { return getNewSelections(request); // depends on control dependency: [if], data = [none] } else { return getValue(); // depends on control dependency: [if], data = [none] } } }
public class class_name { public void registerExtensions(final Class<?>... extensions) { for (Class<?> extension : extensions) { register(ConfigItem.Extension, extension); } } }
public class class_name { public void registerExtensions(final Class<?>... extensions) { for (Class<?> extension : extensions) { register(ConfigItem.Extension, extension); // depends on control dependency: [for], data = [extension] } } }
public class class_name { @Override public void updateStreamState(final String scopeName, final String streamName, final StreamState updateStreamStateRequest, SecurityContext securityContext, AsyncResponse asyncResponse) { long traceId = LoggerHelpers.traceEnter(log, "updateStreamState"); ...
public class class_name { @Override public void updateStreamState(final String scopeName, final String streamName, final StreamState updateStreamStateRequest, SecurityContext securityContext, AsyncResponse asyncResponse) { long traceId = LoggerHelpers.traceEnter(log, "updateStreamState"); ...
public class class_name { public void dump() { if (log.isTraceEnabled()) { log.trace("Scope: {} {}", this.getClass().getName(), this); log.trace("Running: {}", running); if (hasParent()) { log.trace("Parent: {}", parent); Set<String> nam...
public class class_name { public void dump() { if (log.isTraceEnabled()) { log.trace("Scope: {} {}", this.getClass().getName(), this); log.trace("Running: {}", running); if (hasParent()) { log.trace("Parent: {}", parent); // depends on control dependenc...
public class class_name { public void setFaceDetails(java.util.Collection<FaceDetail> faceDetails) { if (faceDetails == null) { this.faceDetails = null; return; } this.faceDetails = new java.util.ArrayList<FaceDetail>(faceDetails); } }
public class class_name { public void setFaceDetails(java.util.Collection<FaceDetail> faceDetails) { if (faceDetails == null) { this.faceDetails = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static void parseCamundaInputParameters(Element inputOutputElement, IoMapping ioMapping) { List<Element> inputParameters = inputOutputElement.elementsNS(BpmnParse.CAMUNDA_BPMN_EXTENSIONS_NS, "inputParameter"); for (Element inputParameterElement : inputParameters) { parseI...
public class class_name { public static void parseCamundaInputParameters(Element inputOutputElement, IoMapping ioMapping) { List<Element> inputParameters = inputOutputElement.elementsNS(BpmnParse.CAMUNDA_BPMN_EXTENSIONS_NS, "inputParameter"); for (Element inputParameterElement : inputParameters) { parseI...
public class class_name { @Override public boolean equalsKey(long address, WrappedBytes wrappedBytes) { // 16 bytes for eviction if needed (optional) // 8 bytes for linked pointer int headerOffset = evictionEnabled ? 24 : 8; byte type = MEMORY.getByte(address, headerOffset); headerOffs...
public class class_name { @Override public boolean equalsKey(long address, WrappedBytes wrappedBytes) { // 16 bytes for eviction if needed (optional) // 8 bytes for linked pointer int headerOffset = evictionEnabled ? 24 : 8; byte type = MEMORY.getByte(address, headerOffset); headerOffs...
public class class_name { @Override public void selectionChanged(IAction action, ISelection selection) { bugInstance = null; // TODO learn to deal with ALL elements IMarker marker = MarkerUtil.getMarkerFromSingleSelection(selection); if (marker == null) { return; ...
public class class_name { @Override public void selectionChanged(IAction action, ISelection selection) { bugInstance = null; // TODO learn to deal with ALL elements IMarker marker = MarkerUtil.getMarkerFromSingleSelection(selection); if (marker == null) { return; // depe...
public class class_name { static void putBooleanIfNotNull( @NonNull JSONObject jsonObject, @NonNull @Size(min = 1) String fieldName, @Nullable Boolean value) { if (value == null) { return; } try { jsonObject.put(fieldName, value.boolea...
public class class_name { static void putBooleanIfNotNull( @NonNull JSONObject jsonObject, @NonNull @Size(min = 1) String fieldName, @Nullable Boolean value) { if (value == null) { return; // depends on control dependency: [if], data = [none] } tr...
public class class_name { public String getStringValue() { // Check if the attribute class has been finalized yet. if (attributeClass.finalized) { // Fetch the string value from the attribute class. return attributeClass.lookupValue[value].label; } el...
public class class_name { public String getStringValue() { // Check if the attribute class has been finalized yet. if (attributeClass.finalized) { // Fetch the string value from the attribute class. return attributeClass.lookupValue[value].label; // depends on contro...
public class class_name { public void script(String line, DispatchCallback callback) { if (sqlLine.getScriptOutputFile() == null) { startScript(line, callback); } else { stopScript(line, callback); } } }
public class class_name { public void script(String line, DispatchCallback callback) { if (sqlLine.getScriptOutputFile() == null) { startScript(line, callback); // depends on control dependency: [if], data = [none] } else { stopScript(line, callback); // depends on control dependency: [if], data = ...
public class class_name { final public void Value() throws ParseException { AstValue jjtn001 = new AstValue(JJTVALUE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { ValuePrefix(); label_14: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { cas...
public class class_name { final public void Value() throws ParseException { AstValue jjtn001 = new AstValue(JJTVALUE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { ValuePrefix(); label_14: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { cas...
public class class_name { public void marshall(ListElasticsearchVersionsRequest listElasticsearchVersionsRequest, ProtocolMarshaller protocolMarshaller) { if (listElasticsearchVersionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...
public class class_name { public void marshall(ListElasticsearchVersionsRequest listElasticsearchVersionsRequest, ProtocolMarshaller protocolMarshaller) { if (listElasticsearchVersionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...
public class class_name { @SuppressWarnings("unchecked") public static boolean hasProperty(Object obj, String name) { if (obj == null || name == null) { return false; } else if (obj instanceof Map<?, ?>) { Map<Object, Object> map = (Map<Object, Object>) obj; for (Object key : map.keySet()) { if (name...
public class class_name { @SuppressWarnings("unchecked") public static boolean hasProperty(Object obj, String name) { if (obj == null || name == null) { return false; // depends on control dependency: [if], data = [none] } else if (obj instanceof Map<?, ?>) { Map<Object, Object> map = (Map<Object, Object>) ...
public class class_name { private static URL getResource(String name, ClassLoader[] classLoaders) { // Java standard class loader require resource name to be an absolute path without leading path separator // at this point <name> argument is guaranteed to not start with leading path separator for(C...
public class class_name { private static URL getResource(String name, ClassLoader[] classLoaders) { // Java standard class loader require resource name to be an absolute path without leading path separator // at this point <name> argument is guaranteed to not start with leading path separator for(C...
public class class_name { protected Object makeModel(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, ModelHandler modelHandler) throws Exception { Object model = null; try { String formName = actionMapping.getName(); if (formName == null) throw new Exception("no d...
public class class_name { protected Object makeModel(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, ModelHandler modelHandler) throws Exception { Object model = null; try { String formName = actionMapping.getName(); if (formName == null) throw new Exception("no d...
public class class_name { public List<ObjectIdentity> findChildren(ObjectIdentity parentIdentity) { Object[] args = { parentIdentity.getIdentifier().toString(), parentIdentity.getType() }; List<ObjectIdentity> objects = jdbcOperations.query(findChildrenSql, args, new RowMapper<ObjectIdentity>() { public O...
public class class_name { public List<ObjectIdentity> findChildren(ObjectIdentity parentIdentity) { Object[] args = { parentIdentity.getIdentifier().toString(), parentIdentity.getType() }; List<ObjectIdentity> objects = jdbcOperations.query(findChildrenSql, args, new RowMapper<ObjectIdentity>() { public O...