repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/linkis
1,044
linkis-public-enhancements/linkis-cs-server/src/main/java/org/apache/linkis/cs/server/LinkisCSApplication.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.cs.server; import org.apache.linkis.LinkisBaseServerApp; public class LinkisCSApplication { public static void main(String[] args) throws ReflectiveOperationException { LinkisBaseServerApp.main(args); } }
apache/logging-log4j2
1,043
log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/KeyValuePairComponentBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.logging.log4j.core.config.builder.api; /** * Assembler for constructing KeyValuePair Components. * @since 2.9 */ public interface KeyValuePairComponentBuilder extends ComponentBuilder<KeyValuePairComponentBuilder> {}
apache/manifoldcf
1,033
connectors/generic/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/generic/api/Items.java
/* * Copyright 2013 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.manifoldcf.crawler.connectors.generic.api; import java.util.List; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElements; import javax.xml.bind.annotation.XmlRootElement; /** * * @author krycek */ @XmlRootElement(name = "items") public class Items { @XmlElements(value = { @XmlElement(name = "item", type = Item.class)}) public List<Item> items; }
apache/maven-compiler-plugin
1,061
src/it/multirelease-patterns/singleproject-root/src/main/java/mr/A.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package mr; import base.Base; public class A implements I { public static String getString() { return Base.get() + " -> 9"; } @Override public Class<?> introducedClass() { return java.time.LocalDateTime.class; } }
apache/maven-indexer
1,059
indexer-core/src/main/java/org/apache/maven/index/IndexerFieldVersion.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.index; public enum IndexerFieldVersion { /** * The 1.x line. */ V1, /** * The 2.x line. */ V2, /** * The 3.x line. */ V3, /** * The 4.x line. */ V4 }
apache/nifi
1,034
nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/link/LinkBuilder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.nifi.registry.web.link; import jakarta.ws.rs.core.Link; /** * Creates a Link for a given type. * * @param <T> the type to create a link for */ public interface LinkBuilder<T> { Link createLink(T t); }
apache/oodt
1,075
commons/src/main/java/org/apache/oodt/commons/EDAException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.oodt.commons; public class EDAException extends Exception { public EDAException(String msg) { super(msg); } public EDAException(Throwable cause) { super(cause); } public EDAException(String msg, Throwable cause) { super(msg, cause); } }
apache/openjpa
1,077
openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MaxDBDictionary.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.openjpa.jdbc.sql; /** * Database dictionary for using SAP's MaxDB. Currently just a placeholder, the behavior does not differ from * <code>org.apache.openjpa.jdbc.sql.DBDictionary</code> * */ public class MaxDBDictionary extends DBDictionary { }
apache/openwebbeans
1,053
webbeans-impl/src/test/java/org/apache/webbeans/test/decorators/multiple/IOutputProvider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.webbeans.test.decorators.multiple; public interface IOutputProvider { public String getOutput(); public String trace(); public String otherMethod(); public String getDelayedOutput() throws InterruptedException; }
apache/pinot
1,092
pinot-core/src/main/java/org/apache/pinot/core/common/Block.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.core.common; /** * A {@code Block} represents the data block returned by the {@link Operator}. Each operator can return multiple blocks. * It can contain document ids, column values or result rows depending on the operator. */ public interface Block { }
apache/polygene-java
1,035
libraries/logging/src/main/java/org/apache/polygene/library/logging/debug/records/ServiceDebugRecordEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.library.logging.debug.records; import org.apache.polygene.api.property.Property; public interface ServiceDebugRecordEntity extends DebugRecord { Property<String> source(); }
apache/polygene-java
1,035
libraries/logging/src/main/java/org/apache/polygene/library/logging/trace/records/ServiceTraceRecordEntity.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.library.logging.trace.records; import org.apache.polygene.api.property.Property; public interface ServiceTraceRecordEntity extends TraceRecord { Property<String> source(); }
apache/polygene-java
1,055
libraries/http/src/main/java/org/apache/polygene/library/http/WelcomeServletService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * */ package org.apache.polygene.library.http; import javax.servlet.Servlet; import org.apache.polygene.api.mixin.Mixins; /** * JAVADOC */ @Mixins( WelcomeServlet.class ) public interface WelcomeServletService extends Servlet { }
apache/ratis
1,076
ratis-common/src/main/java/org/apache/ratis/protocol/DataStreamPacket.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ratis.protocol; import org.apache.ratis.proto.RaftProtos.DataStreamPacketHeaderProto.Type; public interface DataStreamPacket { ClientId getClientId(); Type getType(); long getStreamId(); long getStreamOffset(); long getDataLength(); }
apache/rocketmq-connect
1,031
rocketmq-connect-runtime/src/main/java/org/apache/rocketmq/connect/runtime/serialization/ByteArrayDeserializer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.rocketmq.connect.runtime.serialization; public class ByteArrayDeserializer implements Deserializer<byte[]> { @Override public byte[] deserialize(String topic, byte[] data) { return data; } }
apache/royale-compiler
1,045
compiler/src/main/java/org/apache/royale/compiler/tree/mxml/IMXMLHTTPServiceRequestPropertyNode.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.royale.compiler.tree.mxml; /** * AST node for {@code <s:request>} tags under {@code <s:HTTPService>} tags. */ public interface IMXMLHTTPServiceRequestPropertyNode extends IMXMLPropertySpecifierNode { }
apache/seatunnel-web
1,059
seatunnel-web-common/src/main/java/org/apache/seatunnel/common/access/AccessInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.seatunnel.common.access; import lombok.Data; import java.util.Set; @Data public class AccessInfo { private String username; private String workspaceName; private Set<String> userGroups; private Set<String> userRoles; }
apache/servicecomb-samples
1,026
java-chassis-samples/common-schema/src/main/java/org/apache/servicecomb/samples/common/schema/models/Person.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.servicecomb.samples.common.schema.models; public class Person { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }
apache/shardingsphere
1,040
kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/importer/Importer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.shardingsphere.data.pipeline.core.importer; import org.apache.shardingsphere.data.pipeline.core.execute.PipelineLifecycleRunnable; /** * Importer. */ public interface Importer extends PipelineLifecycleRunnable { }
apache/skywalking
1,028
oap-server/server-query-plugin/promql-plugin/src/main/java/org/apache/skywalking/oap/query/promql/entity/ResponseData.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.oap.query.promql.entity; import lombok.Data; import org.apache.skywalking.oap.query.promql.entity.response.ResultType; @Data public class ResponseData { private ResultType resultType; }
apache/solr
1,069
solr/api/src/java/org/apache/solr/client/api/model/SchemaListDynamicFieldsResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.client.api.model; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; public class SchemaListDynamicFieldsResponse extends SolrJerseyResponse { @JsonProperty("dynamicFields") public List<Object> dynamicFields; }
apache/solr
1,085
solr/api/src/java/org/apache/solr/client/api/model/CreateCoreResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.client.api.model; import com.fasterxml.jackson.annotation.JsonProperty; /** Response for {@link org.apache.solr.client.api.endpoint.CoreApis} 'create' API */ public class CreateCoreResponse extends SolrJerseyResponse { @JsonProperty public String core; }
apache/storm
1,065
storm-server/src/main/java/org/apache/storm/daemon/metrics/reporters/PreparableReporter.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package org.apache.storm.daemon.metrics.reporters; import com.codahale.metrics.MetricRegistry; import java.util.Map; public interface PreparableReporter { void prepare(MetricRegistry metricsRegistry, Map<String, Object> daemonConf); void start(); void stop(); }
apache/streampipes
1,050
streampipes-service-core/src/main/java/org/apache/streampipes/service/core/SupportedProtocols.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.streampipes.service.core; import org.apache.streampipes.messaging.SpProtocolDefinitionFactory; import java.util.List; public interface SupportedProtocols { List<SpProtocolDefinitionFactory<?>> getSupportedProtocols(); }
apache/tomcat
1,111
test/org/apache/el/TesterBeanI.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.el; public class TesterBeanI { public String echo(TesterBeanA beanA) { return "No varargs: " + beanA.getName(); } public String echo(TesterBeanAAA beanAAA, @SuppressWarnings("unused") String... extras) { return "With varargs: " + beanAAA.getName(); } }
apache/tomcat80
1,120
java/javax/mail/Session.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package javax.mail; import java.util.Properties; @SuppressWarnings("unused") // Dummy implementation public class Session { public static Session getInstance(Properties props, Authenticator auth) { return null; } public static Session getInstance(Properties props) { return null; } }
apache/tomee
1,065
examples/websocket-jms/src/main/java/org/superbiz/websockets/MessageReceivedEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.superbiz.websockets; public class MessageReceivedEvent { private final String message; public MessageReceivedEvent(String message) { this.message = message; } public String getMessage() { return message; } }
apache/uima-uimaj
1,075
uimaj-core/src/main/java/org/apache/uima/cas/impl/FloatArrayFSImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.cas.impl; import org.apache.uima.cas.FloatArrayFS; /** * V2 compatibility only The non-JCas cover class for Float Array * * @deprecated use FloatArray instead */ @Deprecated public interface FloatArrayFSImpl extends FloatArrayFS { }
apache/uima-uimaj
1,075
uimaj-core/src/main/java/org/apache/uima/cas/impl/ShortArrayFSImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.cas.impl; import org.apache.uima.cas.ShortArrayFS; /** * V2 compatibility only The non-JCas cover class for Short Array * * @deprecated use ShortArray instead */ @Deprecated public interface ShortArrayFSImpl extends ShortArrayFS { }
apache/uima-uimaj
1,084
uimaj-core/src/main/java/org/apache/uima/cas/FSConstraint.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.uima.cas; import java.io.Serializable; /** * Interface for feature structure constraints. Doesn't do anything by itself, just an umbrella for * the constraint interfaces. */ public interface FSConstraint extends Serializable { // Does nothing. }
apache/uniffle
1,052
internal-client/src/main/java/org/apache/uniffle/client/request/RssFetchRemoteStorageRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.uniffle.client.request; public class RssFetchRemoteStorageRequest { private String appId; public RssFetchRemoteStorageRequest(String appId) { this.appId = appId; } public String getAppId() { return appId; } }
apache/wicket
1,063
wicket-core-tests/src/test/java/org/apache/wicket/noheadnobody/NoHeadNoBodyPage.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.wicket.noheadnobody; import org.apache.wicket.markup.html.WebPage; public class NoHeadNoBodyPage extends WebPage { private static final long serialVersionUID = 1L; public NoHeadNoBodyPage() { add(new NoHeadNoBodyPanel("panel")); } }
google/auto
1,063
factory/src/test/resources/good/FactoryExtendingAbstractClassWithMultipleConstructors.java
/* * Copyright 2013 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package tests; import com.google.auto.factory.AutoFactory; import tests.FactoryExtendingAbstractClassWithMultipleConstructors.AbstractFactory; @AutoFactory(extending = AbstractFactory.class) final class FactoryExtendingAbstractClassWithMultipleConstructors { abstract static class AbstractFactory { protected AbstractFactory(Object obj) {} protected AbstractFactory() {} abstract FactoryExtendingAbstractClassWithMultipleConstructors newInstance(); } }
google/binnavi
1,063
src/main/java/com/google/security/zynamics/binnavi/Database/PostgreSQL/Notifications/_Doc.java
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.binnavi.Database.PostgreSQL.Notifications; /** * This package contains all the necessary logic to use LISTEN / NOTIFY messages from a postgreSQL * back end. The code is based upon an example taken from the postgresql wiki @ * http://wiki.postgresql.org/wiki/PgNotificationPoller. it has been adapted to meet our naming * conventions and splitting of files. Also it has been adapted to use some features of the guava * library. */
google/binnavi
1,081
src/main/java/com/google/security/zynamics/zylib/image/ImageHelper.java
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.zylib.image; import java.awt.Image; import java.awt.Toolkit; import java.awt.image.FilteredImageSource; import java.awt.image.ImageFilter; import java.awt.image.ImageProducer; public class ImageHelper { public static Image filterImage(final Image inImage, final ImageFilter filter) { final ImageProducer imageProducer = new FilteredImageSource(inImage.getSource(), filter); return Toolkit.getDefaultToolkit().createImage(imageProducer); } }
google/caliper
1,087
caliper-api/src/main/java/com/google/caliper/model/package-info.java
/* * Copyright (C) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * These classes model the data that is collected by the caliper {@linkplain * com.google.caliper.runner runner}: the record of which scenarios were tested on which VMs by * which instruments and, most importantly, all the measurements that were observed. * * <p>The primary goal of these classes is to be as easily convertible back and forth to JSON text * as possible. The secondary goal is to be easily persistable in a relational database. */ package com.google.caliper.model;
google/closure-templates
1,057
java/src/com/google/template/soy/jbcsrc/shared/MissingPluginInstanceException.java
/* * Copyright 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.template.soy.jbcsrc.shared; /** An exception thrown when a plugin instance is missing while rendering jbcsrc templates. */ public final class MissingPluginInstanceException extends IllegalStateException { private final String functionName; public MissingPluginInstanceException(String functionName, String msg) { super(msg); this.functionName = functionName; } public String functionName() { return functionName; } }
google/error-prone
1,046
core/src/test/java/com/google/errorprone/refaster/testdata/template/SuppressWarningsTemplate.java
/* * Copyright 2021 The Error Prone Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.errorprone.refaster.testdata.template; import com.google.errorprone.refaster.annotation.AfterTemplate; import com.google.errorprone.refaster.annotation.BeforeTemplate; /** Sample template for exercising {@code @SuppressWarnings} handling. */ public class SuppressWarningsTemplate { @BeforeTemplate int abs(int x) { return x < 0 ? -x : x; } @AfterTemplate int math(int x) { return Math.abs(x); } }
google/fhir
1,111
java/com/google/fhir/release/Release.java
// Copyright 2020 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.fhir.release; /** * A dummy main class for a Java binary. * * In order to create a single JAR that includes the transitive closure of dependencies required for * FHIR protos, we use the *_deploy.jar generated by the java_binary rule. See * https://docs.bazel.build/versions/master/be/java.html#java_binary. This is the main class the * java_binary rule requires. */ final class Release { private Release() { } public static void main(String[] args) { } }
google/j2cl
1,066
transpiler/javatests/com/google/j2cl/integration/java/npecatch/Main.java
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package npecatch; import static com.google.j2cl.integration.testing.Asserts.assertTrue; /** * Test NPE catch. */ public class Main { public static void main(String... args) { try { throwNpe(); assertTrue(false); } catch (NullPointerException expected) { // expected } } static class SomeObject { String doX() { return this + "x"; } } public static void throwNpe() { SomeObject a = null; a.doX(); } }
google/j2cl
1,096
jre/java/super-wasm/javaemul/internal/HashCodes.java
/* * Copyright 2021 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package javaemul.internal; import jsinterop.annotations.JsType; /** Contains logics for calculating hash codes in JavaScript. */ @JsType public class HashCodes { public static int getIdentityHashCode(Object o) { return o == null ? 0 : getObjectIdentityHashCode(o); } private static int nextHash; public static int getObjectIdentityHashCode(Object o) { return o.$systemIdentityHashCode != 0 ? o.$systemIdentityHashCode : (o.$systemIdentityHashCode = ++nextHash); } }
google/nomulus
1,060
prober/src/main/java/google/registry/monitoring/blackbox/exception/EppClientException.java
// Copyright 2019 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package google.registry.monitoring.blackbox.exception; /** * Subclass of {@link UndeterminedStateException} that represents all instances when the action * performed failed due to the fault of the Prober when the action is an EPP action. */ public class EppClientException extends UndeterminedStateException { public EppClientException(String msg) { super(msg); } public EppClientException(Throwable e) { super(e); } }
googlemaps/android-maps-utils
1,054
library/src/main/java/com/google/maps/android/data/geojson/GeoJsonStyle.java
/* * Copyright 2020 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.maps.android.data.geojson; /** * Class used to apply styles for the * {@link com.google.maps.android.data.geojson.GeoJsonFeature GeoJsonFeature} objects */ interface GeoJsonStyle { /** * Gets the type of geometries this style can be applied to * * @return type of geometries this style can be applied to */ String[] getGeometryType(); boolean isVisible(); void setVisible(boolean visible); }
hibernate/hibernate-orm
1,027
hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/foreignkeys/Person.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.schemaupdate.foreignkeys; import jakarta.persistence.CascadeType; import jakarta.persistence.Entity; import jakarta.persistence.ForeignKey; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; import jakarta.persistence.JoinColumn; import jakarta.persistence.JoinTable; import jakarta.persistence.OneToMany; import jakarta.persistence.Table; import java.util.ArrayList; import java.util.List; /** * @author Andrea Boriero */ @Entity @Table(name = "PERSON") public class Person { @Id @GeneratedValue private Long id; @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) @JoinTable(name = "PERSON_PHONE", joinColumns = @JoinColumn(name = "PERSON_ID", foreignKey = @ForeignKey(name = "PERSON_ID_FK")), inverseJoinColumns = @JoinColumn(name = "PHONE_ID", foreignKey = @ForeignKey(name = "PHONE_ID_FK")) ) private List<Phone> phones = new ArrayList<Phone>(); }
openjdk/jdk8
1,092
langtools/test/com/sun/javadoc/testPackageDeprecation/pkg1/Foo2.java
/* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg1; public interface Foo2 {}
openjdk/jdk8
1,094
langtools/test/com/sun/javadoc/testUseOption/pkg1/UsedClass.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg1; public class UsedClass { }
openjdk/jdk8
1,114
langtools/test/tools/javac/enum/T5081785b.java
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ class A { Object o = new Object() { enum STRENGTH{}; }; }
openjdk/jdk8
1,115
langtools/test/tools/javac/abstract/T3.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p3; class T3 extends p1.T2 { public void f() {} }
oracle/coherence
1,049
prj/test/functional/trigger/src/main/java/trigger/DistPoolMapTriggerTests.java
/* * Copyright (c) 2000, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package trigger; import org.junit.BeforeClass; /** * A collection of functional tests for the MapTrigger functionality that use * the "dist-pool-test1" cache. * * @author gg 2008.03.14 */ public class DistPoolMapTriggerTests extends AbstractMapTriggerTests { // ----- constructors --------------------------------------------------- /** * Default constructor. */ public DistPoolMapTriggerTests() { super("dist-pool-test1"); } // ----- test lifecycle ------------------------------------------------- /** * Initialize the test class. */ @BeforeClass public static void _startup() { // this test requires local storage to be enabled System.setProperty("coherence.distributed.localstorage", "true"); AbstractMapTriggerTests._startup(); } }
oracle/coherence
1,049
prj/test/functional/trigger/src/main/java/trigger/NearPoolMapTriggerTests.java
/* * Copyright (c) 2000, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package trigger; import org.junit.BeforeClass; /** * A collection of functional tests for the MapTrigger functionality that use * the "near-pool-test1" cache. * * @author gg 2008.03.14 */ public class NearPoolMapTriggerTests extends AbstractMapTriggerTests { // ----- constructors --------------------------------------------------- /** * Default constructor. */ public NearPoolMapTriggerTests() { super("near-pool-test1"); } // ----- test lifecycle ------------------------------------------------- /** * Initialize the test class. */ @BeforeClass public static void _startup() { // this test requires local storage to be enabled System.setProperty("coherence.distributed.localstorage", "true"); AbstractMapTriggerTests._startup(); } }
oracle/coherence
1,057
prj/test/functional/jpa/src/main/java/orm/JpaCacheStoreWithEmbeddedIdTests.java
/* * Copyright (c) 2000, 2024, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package orm; import data.persistence.DomainClassPolicy; public class JpaCacheStoreWithEmbeddedIdTests extends AbstractPersistenceTests { // ----- constructors --------------------------------------------------- /** * Default constructor. */ public JpaCacheStoreWithEmbeddedIdTests() { super(CONFIG_FILE_NAME); } // ----- AbstractPersistenceTests methods ------------------------------- protected void initCache() throws Exception { m_cache = getNamedCache(ENTITY_PERSION_ID_EMBEDDED); } protected void initDomainClassPolicy() { m_policy = new DomainClassPolicy.CompoundPerson2Class(); } // ----- constants ------------------------------------------------------ public static String CONFIG_FILE_NAME = "jpa-cache-config.xml"; }
oracle/coherence
1,062
prj/coherence-cdi/src/main/java/com/oracle/coherence/cdi/events/Synchronous.java
/* * Copyright (c) 2000, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package com.oracle.coherence.cdi.events; import com.oracle.coherence.cdi.AnnotationLiteral; import com.tangosol.util.MapListener; import jakarta.inject.Qualifier; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * A qualifier annotation that can be applied to {@link MapListener} CDI * observers to register them as {@link MapListener#synchronous()} listeners. * * @author Aleks Seovic 2020.04.01 * @since 20.06 */ @Qualifier @Documented @Retention(RetentionPolicy.RUNTIME) public @interface Synchronous { /** * An annotation literal for the {@link Synchronous} * annotation. */ class Literal extends AnnotationLiteral<Synchronous> implements Synchronous { public static final Literal INSTANCE = new Literal(); } }
apache/crunch
1,083
crunch-contrib/src/main/java/org/apache/crunch/contrib/package-info.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * User contributions that may be interesting for special applications. * * Things included in this package or its subpackages are maintained * by the Crunch team, but are too specialized to include them in the * core library. */ package org.apache.crunch.contrib;
apache/cxf
1,058
tools/javato/ws/src/test/java/org/apache/cxf/tools/fortest/classnoanno/docwrapped/AddException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.tools.fortest.classnoanno.docwrapped; public class AddException extends Exception { private static final long serialVersionUID = 6540833952002339750L; public AddException(String message) { super(message); } }
apache/cxf
1,074
services/sts/sts-core/src/main/java/org/apache/cxf/sts/cache/IdentityCache.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.sts.cache; import java.util.Map; public interface IdentityCache { void add(String user, String realm, Map<String, String> identities); Map<String, String> get(String user, String realm); void remove(String user, String realm); }
apache/cxf
1,087
core/src/main/java/org/apache/cxf/endpoint/ClientLifeCycleManager.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.endpoint; public interface ClientLifeCycleManager { void clientCreated(Client client); void clientDestroyed(Client client); void registerListener(ClientLifeCycleListener listener); void unRegisterListener(ClientLifeCycleListener listener); }
apache/deltaspike
1,034
deltaspike/core/impl/obsolete/src/test/java/org/apache/deltaspike/test/core/api/alternative/global/SubBaseBean2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.test.core.api.alternative.global; import jakarta.enterprise.context.Dependent; import jakarta.enterprise.inject.Alternative; @Alternative @Dependent public class SubBaseBean2 extends SubBaseBean1 { }
apache/druid
1,049
processing/src/main/java/org/apache/druid/math/expr/vector/functional/ObjectBivariateObjectsFunction.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.druid.math.expr.vector.functional; import javax.annotation.Nullable; @FunctionalInterface public interface ObjectBivariateObjectsFunction { @Nullable Object process(@Nullable Object left, @Nullable Object right); }
apache/eventmesh
1,068
eventmesh-common/src/test/java/org/apache/eventmesh/common/utils/IPUtilsTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eventmesh.common.utils; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class IPUtilsTest { @Test public void testLocalhostIP() { Assertions.assertNotNull(IPUtils.getLocalAddress()); } }
apache/fesod
1,075
fesod/src/main/java/org/apache/fesod/excel/enums/HolderEnum.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fesod.excel.enums; /** * The types of holder * * **/ public enum HolderEnum { /** * workbook */ WORKBOOK, /** * sheet */ SHEET, /** * table */ TABLE, /** * row */ ROW; }
apache/fineract
1,031
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/migration/SchemaUpgradeNeededException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.core.service.migration; public class SchemaUpgradeNeededException extends RuntimeException { public SchemaUpgradeNeededException(String message) { super(message); } }
apache/fineract
1,036
fineract-core/src/main/java/org/apache/fineract/infrastructure/event/external/service/message/domain/MessageId.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.event.external.service.message.domain; import lombok.Getter; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor @Getter public class MessageId { private final long id; }
apache/fineract
1,044
fineract-provider/src/main/java/org/apache/fineract/portfolio/rate/exception/RateAlreadyExistException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.portfolio.rate.exception; /** * Bowpi GT Created by Jose on 24/07/2017. */ public class RateAlreadyExistException extends Exception { public RateAlreadyExistException(String s) { super(s); } }
apache/flex-blazeds
1,053
remoting/src/main/java/flex/management/runtime/messaging/services/RemotingServiceControlMBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package flex.management.runtime.messaging.services; /** * Defines the runtime monitoring and management interface for managed remoting services. */ public interface RemotingServiceControlMBean extends ServiceControlMBean { // Empty for now. }
apache/flex-utilities
1,043
FlexPMD/flex-pmd-java/flex-pmd-ruleset-api/src/main/java/com/adobe/ac/pmd/nodes/ICommentHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.adobe.ac.pmd.nodes; import java.util.List; import com.adobe.ac.pmd.parser.IParserNode; /** * @author xagnetti */ public interface ICommentHolder { /** * @return */ List< IParserNode > getMultiLinesComment(); }
apache/flink
1,050
flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/runner/DispatcherLeaderProcessFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.dispatcher.runner; import java.util.UUID; /** Factory for the {@link DispatcherLeaderProcess}. */ public interface DispatcherLeaderProcessFactory { DispatcherLeaderProcess create(UUID leaderSessionID); }
apache/flink
1,050
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/CallProcedureOperation.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.table.operations; import org.apache.flink.annotation.Internal; /** A {@link Operation} that describes the call procedure statement. */ @Internal public interface CallProcedureOperation extends ExecutableOperation {}
apache/flink
1,055
flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/FunctionLanguage.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.table.catalog; import org.apache.flink.annotation.PublicEvolving; /** Categorizes the language semantics of a {@link CatalogFunction}. */ @PublicEvolving public enum FunctionLanguage { JAVA, SCALA, PYTHON }
apache/flink
1,064
flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/StateFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.flink.runtime.scheduler.adaptive; /** * Factory for creating adaptive scheduler state instances. * * @param <T> Type of the state. */ public interface StateFactory<T extends State> { Class<T> getStateClass(); T getState(); }
apache/fluss
1,063
fluss-filesystems/fluss-fs-s3/src/main/java/org/apache/fluss/fs/s3/S3AFileSystemPlugin.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.fluss.fs.s3; /** Simple factory for the S3 file system, registered for the <tt>s3a://</tt> scheme. */ public class S3AFileSystemPlugin extends S3FileSystemPlugin { @Override public String getScheme() { return "s3a"; } }
apache/geaflow
1,039
geaflow/geaflow-dsl/geaflow-dsl-common/src/main/java/org/apache/geaflow/dsl/common/data/impl/ParameterizedPath.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.dsl.common.data.impl; import org.apache.geaflow.dsl.common.data.ParameterizedRow; import org.apache.geaflow.dsl.common.data.Path; public interface ParameterizedPath extends ParameterizedRow, Path { }
apache/geaflow
1,051
geaflow/geaflow-core/geaflow-api/src/main/java/org/apache/geaflow/api/trait/TransactionTrait.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.api.trait; public interface TransactionTrait { /** * Finish the window execution. */ void finish(long windowId); /** * Rollback to windowId. */ void rollback(long windowId); }
apache/geode
1,059
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/result/TooManyColumnsException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.management.internal.cli.result; public class TooManyColumnsException extends RuntimeException { private static final long serialVersionUID = 4703710831740034363L; public TooManyColumnsException(String message) { super(message); } }
apache/geode
1,066
geode-core/src/main/java/org/apache/geode/distributed/internal/deadlock/ThreadReference.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.distributed.internal.deadlock; import java.io.Serializable; /** * A marker interface for thread identifiers returned from * {@link DeadlockDetector#getThreadReference(String, Thread)} */ public interface ThreadReference extends Serializable { }
apache/groovy
1,096
src/tck/src/org/codehaus/groovy/tck/TestGeneratorHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.codehaus.groovy.tck; /** Helper methods used by generated TCK test cases */ public interface TestGeneratorHelper { Object evaluate(String theSrcText, String testName) throws Exception; void parse(String theSrcText, String testName) throws Exception; }
apache/groovy
1,099
src/test/groovy/groovy/transform/stc/MyBean.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package groovy.transform.stc; /** * A simple Java bean, used by unit test for GROOVY-5578 */ public class MyBean<T> { private T value; public T getValue() { return value; } public void setValue(final T value) { this.value = value; } }
apache/harmony
1,070
classlib/modules/awt/src/main/java/common/java/awt/event/WindowFocusListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Michael Danilov */ package java.awt.event; import java.util.EventListener; public interface WindowFocusListener extends EventListener { public void windowGainedFocus(WindowEvent e); public void windowLostFocus(WindowEvent e); }
apache/harmony
1,072
classlib/modules/awt/src/main/java/common/java/awt/datatransfer/FlavorEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package java.awt.datatransfer; import java.util.EventObject; public class FlavorEvent extends EventObject { private static final long serialVersionUID = -5842664112252414548L; public FlavorEvent(Clipboard source) { super(source); } }
apache/harmony
1,072
classlib/modules/awt/src/main/java/common/java/awt/event/ContainerListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Michael Danilov */ package java.awt.event; import java.util.EventListener; public interface ContainerListener extends EventListener { public void componentAdded(ContainerEvent e); public void componentRemoved(ContainerEvent e); }
apache/hop
1,083
engine/src/test/java/org/apache/hop/core/injection/MetaBeanWrong5.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.core.injection; /** Wrong declaration - setter should have only one parameter. */ @InjectionSupported(localizationPrefix = "") public class MetaBeanWrong5 { @Injection(name = "TEST") public void setter(int index, int value) { // Do nothing } }
apache/iceberg
1,062
kafka-connect/kafka-connect/src/main/java/org/apache/iceberg/connect/CommitterFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.iceberg.connect; import org.apache.iceberg.connect.channel.CommitterImpl; class CommitterFactory { static Committer createCommitter(IcebergSinkConfig config) { return new CommitterImpl(); } private CommitterFactory() {} }
apache/ignite
1,062
modules/core/src/main/java/org/apache/ignite/internal/processors/query/IndexingQueryEngine.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ignite.internal.processors.query; /** * Marker interface for Indexing-backed query engine (indexing implementation will be used instead of query engine). */ public interface IndexingQueryEngine extends QueryEngine { /** No-op. */ }
apache/incubator-hugegraph
1,038
hugegraph-store/hg-store-test/src/main/java/org/apache/hugegraph/store/service/ServerSuiteTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hugegraph.store.service; import org.junit.runner.RunWith; import org.junit.runners.Suite; import lombok.extern.slf4j.Slf4j; @RunWith(Suite.class) @Suite.SuiteClasses({ }) @Slf4j public class ServerSuiteTest { }
apache/incubator-kie-drools
1,050
drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOneValuedMetaProperty.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.traits.core.metadata; public interface OneToOneValuedMetaProperty<T,R> extends OneValuedMetaProperty<T,R>, InverseOneValuedMetaProperty<T,R> { @Override public OneValuedMetaProperty<R, T> getInverse(); }
apache/incubator-kie-drools
1,056
drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLLexer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.drl.parser.lang; import org.antlr.runtime.TokenSource; import org.drools.drl.parser.DroolsParserException; import java.util.List; public interface DRLLexer extends TokenSource { List<DroolsParserException> getErrors(); }
apache/incubator-kie-drools
1,056
drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex2.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.drools.model; import org.drools.model.functions.Function2; public interface BetaIndex2<A, B, C, V> extends BetaIndexN<A, V> { Function2<B, C, ?> getRightOperandExtractor(); default int getArity() { return 2; } }
apache/incubator-kie-drools
1,066
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContextEntry.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.dmn.model.v1_1; import org.kie.dmn.model.impl.AbstractTContextEntry; public class TContextEntry extends AbstractTContextEntry implements URIFEELed, NotADMNElementInV11 { }
apache/incubator-kie-kogito-runtimes
1,037
jbpm/process-workitems/src/main/java/org/kie/kogito/process/workitems/WorkParametersFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.kie.kogito.process.workitems; import java.util.Map; import org.kie.kogito.process.workitems.impl.WorkItemParamResolver; public interface WorkParametersFactory extends WorkItemParamResolver<Map<String, Object>> { }
apache/incubator-kie-optaplanner
1,033
optaplanner-examples/src/main/java/org/optaplanner/examples/common/swingui/components/Labeled.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.optaplanner.examples.common.swingui.components; import com.fasterxml.jackson.annotation.JsonIgnore; /** * @see LabeledComboBoxRenderer */ public interface Labeled { @JsonIgnore String getLabel(); }
apache/incubator-livy
1,086
rsc/src/main/java/org/apache/livy/rsc/ReplJobResults.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.livy.rsc; import org.apache.livy.rsc.driver.Statement; public class ReplJobResults { public final Statement[] statements; public ReplJobResults(Statement[] statements) { this.statements = statements; } public ReplJobResults() { this(null); } }
apache/incubator-retired-edgent
1,066
api/src/test/java/org/apache/edgent/topology/TopologyTestSetup.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.apache.edgent.topology; import org.apache.edgent.execution.Job; import org.apache.edgent.execution.Submitter; public interface TopologyTestSetup { TopologyProvider createTopologyProvider(); TopologyProvider getTopologyProvider(); Submitter<Topology, Job> createSubmitter(); }
apache/inlong
1,046
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/fieldformat/VarBinaryFormat.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.inlong.manager.pojo.fieldformat; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @NoArgsConstructor public class VarBinaryFormat { private Integer length; }
apache/jena
1,060
jena-fuseki2/jena-fuseki-main/src/test/java/org/apache/jena/fuseki/server/TS_FusekiServer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.fuseki.server; import org.junit.platform.suite.api.SelectClasses; import org.junit.platform.suite.api.Suite; @Suite @SelectClasses({ TestFusekiServer.class, TestFusekiServerCmd.class }) public class TS_FusekiServer {}
apache/jena
1,066
jena-integration-tests/src/test/java/org/apache/jena/test/service/TS_SPARQLService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.test.service; import org.junit.platform.suite.api.SelectClasses; import org.junit.platform.suite.api.Suite; @Suite @SelectClasses({ TestServiceExec.class, TestCustomServiceExecutor.class }) public class TS_SPARQLService {}
apache/jena
1,085
jena-arq/src/test/java/org/apache/jena/sparql/path/TS_Path.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.sparql.path; import org.junit.platform.suite.api.SelectClasses; import org.junit.platform.suite.api.Suite; @Suite @SelectClasses({ TestPath.class , TestPath2.class , TestPathQuery.class , TestPathPF.class }) public class TS_Path { }
apache/jena
1,087
jena-arq/src/main/java/org/apache/jena/query/ResultSetRewindable.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.query; public interface ResultSetRewindable extends ResultSet { /** Move back to the start of the iterator for this instance of results of a query. */ public void reset() ; /** return the number of solutions */ public int size() ; }
apache/karaf
1,027
examples/karaf-graphql-example/karaf-graphql-example-api/src/main/java/org/apache/karaf/examples/graphql/api/BookRepository.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.karaf.examples.graphql.api; import java.util.Collection; public interface BookRepository { Book storeBook(Book book); Collection<Book> getBooks(); Book getBookById(String id); }
apache/karaf
1,063
shell/core/src/main/java/org/apache/karaf/shell/support/completers/CommandNamesCompleter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.karaf.shell.support.completers; import org.apache.karaf.shell.api.console.Completer; /** * Marker class. An instance of this class is published by the console. */ public abstract class CommandNamesCompleter implements Completer { }
apache/linkis
1,057
linkis-public-enhancements/linkis-jobhistory/src/test/java/org/apache/linkis/jobhistory/Scan.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.linkis.jobhistory; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.mybatis.spring.annotation.MapperScan; @EnableAutoConfiguration @MapperScan("org.apache.linkis.jobhistory.dao") public class Scan {}
apache/logging-log4j2
1,056
log4j-api-java9/src/main/java/org/apache/logging/log4j/util/SystemPropertiesPropertySource.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.logging.log4j.util; /** * This is a dummy class and is only here to allow module-info.java to compile. It will not * be copied into the log4j-api module. */ public class SystemPropertiesPropertySource implements PropertySource {}