repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/maven-plugins | 1,020 | maven-javadoc-plugin/src/it/projects/dependencySource-2/MJAVADOC-280-2-projects/MJAVADOC-280-2-modB/src/main/java/org/apache/maven/plugins/mjavadoc/it/modb/App.java | package org.apache.maven.plugins.mjavadoc.it.modb;
/*
* 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.
*/
/**
* Hello world!
*
*/
public class App
{
public static void main( final String[] args )
{
System.out.println( "Hello World!" );
}
}
|
apache/maven-plugins | 1,076 | maven-shade-plugin/src/test/projects/test-project/src/main/java/org/apache/maven/plugins/shade/App.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.plugins.shade;
import org.codehaus.plexus.util.*;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
StringUtils.isEmpty( "foo" );
}
}
|
apache/maven-plugins | 1,108 | maven-site-plugin/src/it/MSITE-507/src/test/java/my/group/id/AppTest.java | package my.group.id;
/*
* 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.
*/
import org.junit.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.matchers.JUnitMatchers.*;
/**
* Unit test for simple App.
*/
public class AppTest {
@Test
public void testApp() {
assertTrue( true );
}
}
|
apache/maven | 1,120 | impl/maven-core/src/main/java/org/apache/maven/BuildFailureException.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;
/**
* One or more builds failed.
*
*/
public class BuildFailureException extends Exception {
public BuildFailureException(String message) {
super(message);
}
public BuildFailureException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/mina-sshd | 1,115 | sshd-common/src/main/java/org/apache/sshd/common/cipher/CipherFactory.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.sshd.common.cipher;
import org.apache.sshd.common.BuiltinFactory;
/**
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
*/
// CHECKSTYLE:OFF
public interface CipherFactory extends BuiltinFactory<Cipher>, CipherInformation {
// nothing extra
}
//CHECKSTYLE:ON
|
apache/nifi | 1,107 | nifi-commons/nifi-flowfile-packager/src/main/java/org/apache/nifi/util/FlowFilePackager.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.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
public interface FlowFilePackager {
void packageFlowFile(InputStream in, OutputStream out, Map<String, String> attributes, long fileSize) throws IOException;
}
|
apache/olingo-odata4 | 1,092 | lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/CsdlAnnotatable.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.olingo.commons.api.edm.provider;
import java.util.List;
/**
* Super type of all annotatable CSDL items
*/
public interface CsdlAnnotatable {
/**
* Returns a list of annotations
* @return list of annotations
*/
List<CsdlAnnotation> getAnnotations();
}
|
apache/oodt | 1,127 | pcs/opsui/src/main/java/org/apache/oodt/pcs/opsui/WorkbenchPage.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.pcs.opsui;
import org.apache.oodt.cas.webcomponents.curation.workbench.Workbench;
import org.apache.wicket.PageParameters;
public class WorkbenchPage extends BasePage {
public WorkbenchPage(PageParameters parametrs){
super(parametrs);
add(new Workbench("curation_component"));
}
}
|
apache/oozie | 1,105 | fluent-job/fluent-job-api/src/main/java/org/apache/oozie/fluentjob/api/action/Builder.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.oozie.fluentjob.api.action;
/**
* A common interface for builders.
* @param <T> The type of the object that is build using this builder.
*/
public interface Builder<T> {
/**
* Builds and returns an object.
* @return The built object.
*/
T build();
}
|
apache/openwebbeans | 1,094 | webbeans-impl/src/test/java/org/apache/webbeans/test/producer/beans/PrivateProducedBean.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.producer.beans;
import jakarta.enterprise.inject.Typed;
/**
* A sample bean which gets produced by a producer method with modifier 'private'
*/
@Typed()
public class PrivateProducedBean
{
public int getMeaningOfLife()
{
return 42;
}
}
|
apache/paimon | 1,102 | paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/LocalAction.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.paimon.flink.action;
import java.io.Serializable;
/**
* Interface for {@link Action}s that are recommended to be executed locally without starting a
* Flink job.
*/
public interface LocalAction extends Action, Serializable {
void executeLocally() throws Exception;
}
|
apache/paimon | 1,116 | paimon-core/src/main/java/org/apache/paimon/table/source/OutOfRangeException.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.paimon.table.source;
/** Indicates that the snapshot to be consumed has been deleted from storage. */
public class OutOfRangeException extends RuntimeException {
private static final long serialVersionUID = 1L;
public OutOfRangeException(String msg) {
super(msg);
}
}
|
apache/paimon | 1,120 | paimon-format/src/main/java/org/apache/paimon/format/avro/FieldReader.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.paimon.format.avro;
import org.apache.avro.io.Decoder;
import java.io.IOException;
/** Reader to read field from Avro {@link Decoder}. */
public interface FieldReader {
Object read(Decoder decoder, Object reuse) throws IOException;
void skip(Decoder decoder) throws IOException;
}
|
apache/pdfbox | 1,115 | pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/DecryptionMaterial.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.pdfbox.pdmodel.encryption;
/**
* This class represents data required to decrypt PDF documents. This can
* be a password for standard security or a X509 certificate with a private
* key for public key security.
*
* @author Benoit Guillon
*/
public abstract class DecryptionMaterial
{
}
|
apache/pekko-http | 1,115 | http-core/src/main/java/org/apache/pekko/http/javadsl/model/headers/Range.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
/*
* Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
*/
package org.apache.pekko.http.javadsl.model.headers;
/**
* Model for the `Range` header. Specification:
* http://tools.ietf.org/html/draft-ietf-httpbis-p5-range-26#section-3.1
*/
public abstract class Range extends org.apache.pekko.http.scaladsl.model.HttpHeader {
public abstract RangeUnit rangeUnit();
public abstract Iterable<ByteRange> getRanges();
public static Range create(RangeUnit rangeUnit, ByteRange... ranges) {
return new org.apache.pekko.http.scaladsl.model.headers.Range(
((org.apache.pekko.http.scaladsl.model.headers.RangeUnit) rangeUnit),
org.apache.pekko.http.impl.util.Util
.<ByteRange, org.apache.pekko.http.scaladsl.model.headers.ByteRange>convertArray(
ranges));
}
}
|
apache/plc4x | 1,099 | plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/driver/internal/utils/Synchronizer.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
*
* 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 org.apache.plc4x.test.driver.internal.utils;
import org.apache.plc4x.java.api.messages.PlcResponse;
import java.util.concurrent.CompletableFuture;
public class Synchronizer {
// TODO: replace with signal
public CompletableFuture<? extends PlcResponse> responseFuture;
}
|
apache/poi | 1,140 | poi/src/main/java/org/apache/poi/ss/formula/ptg/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.
==================================================================== */
/**
* The formula package contains binary PTG structures used in Formulas
*
* @see org.apache.poi.hssf.record
* @see org.apache.poi.hssf.record.FormulaRecord
*/
package org.apache.poi.ss.formula.ptg; |
apache/qpid-broker-j | 1,107 | broker-core/src/main/java/org/apache/qpid/server/model/AuthenticationMethod.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.qpid.server.model;
public interface AuthenticationMethod extends ConfiguredObject
{
// name is the SASL mechanism where this is a SASL authentication
// parents
VirtualHostAlias getVirtualHostAlias();
AuthenticationProvider getAuthenticationProvider();
}
|
apache/ranger | 1,107 | plugin-yarn/src/main/java/org/apache/ranger/services/yarn/client/YarnConnectionMgr.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.ranger.services.yarn.client;
import java.util.Map;
public class YarnConnectionMgr {
private YarnConnectionMgr(){
}
public static YarnClient getYarnClient(String serviceName, Map<String, String> configs) {
return new YarnClient(serviceName, configs);
}
}
|
apache/royale-compiler | 1,085 | compiler-common/src/main/java/org/apache/royale/compiler/definitions/metadata/IDeprecationInfo.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.definitions.metadata;
/**
* Represents the information represented in <code>[Deprecated]</code> metadata.
*/
public interface IDeprecationInfo
{
String getReplacement();
String getSince();
String getMessage();
}
|
apache/samza | 1,101 | samza-azure/src/main/java/org/apache/samza/system/eventhub/admin/PassThroughInterceptor.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.samza.system.eventhub.admin;
import org.apache.samza.system.eventhub.Interceptor;
/**
* An default {@link Interceptor} that is a pass-through.
*/
public class PassThroughInterceptor implements Interceptor {
@Override
public byte[] intercept(byte[] bytes) {
return bytes;
}
}
|
apache/seatunnel-web | 1,103 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/aspect/UserId.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.app.aspect;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface UserId {}
|
apache/seatunnel | 1,056 | seatunnel-connectors-v2/connector-paimon/src/main/java/org/apache/seatunnel/connectors/seatunnel/paimon/config/PaimonHadoopConfiguration.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.connectors.seatunnel.paimon.config;
import org.apache.hadoop.conf.Configuration;
import java.io.Serializable;
/** Can serializable */
public class PaimonHadoopConfiguration extends Configuration implements Serializable {}
|
apache/seatunnel | 1,115 | seatunnel-api/src/main/java/org/apache/seatunnel/api/source/SourceSplit.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.api.source;
import java.io.Serializable;
/** An interface for all the Split types to extend. */
public interface SourceSplit extends Serializable {
/**
* Get the split id of this source split.
*
* @return id of this source split.
*/
String splitId();
}
|
apache/sedona | 1,105 | spark/common/src/main/java/org/apache/sedona/sql/datasources/osmpbf/TruncatedStream.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.sedona.sql.datasources.osmpbf;
import java.io.FilterInputStream;
import java.io.InputStream;
public class TruncatedStream extends FilterInputStream {
protected TruncatedStream(InputStream in) {
super(in);
}
public boolean continueReading() {
return true;
}
}
|
apache/servicecomb-java-chassis | 1,058 | swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/SwaggerGeneratorFactory.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.swagger.generator;
import org.apache.servicecomb.foundation.common.utils.SPIOrder;
public interface SwaggerGeneratorFactory extends SPIOrder {
boolean canProcess(Class<?> cls);
SwaggerGenerator create(Class<?> cls);
}
|
apache/servicecomb-java-chassis | 1,086 | demo/demo-schema/src/main/java/org/apache/servicecomb/demo/controller/PersonAlias.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.demo.controller;
public class PersonAlias {
private String name;
public void setName(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
@Override
public String toString() {
return name;
}
}
|
apache/servicecomb-saga-actuator | 1,099 | saga-core/src/main/java/org/apache/servicecomb/saga/core/LongIdGenerator.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.saga.core;
import java.util.concurrent.atomic.AtomicLong;
public class LongIdGenerator implements IdGenerator<Long> {
private final AtomicLong atomicLong = new AtomicLong();
@Override
public Long nextId() {
return atomicLong.incrementAndGet();
}
}
|
apache/servicecomb-samples | 1,038 | java-chassis-samples/codefirst-sample/codefirst-provider/src/main/java/org/apache/servicecomb/samples/codefirst/provider/CodeFirstProviderMain.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.codefirst.provider;
import org.apache.servicecomb.foundation.common.utils.BeanUtils;
public class CodeFirstProviderMain {
public static void main(String[] args) {
BeanUtils.init();
}
}
|
apache/servicecomb-samples | 1,038 | java-chassis-samples/springmvc-sample/springmvc-provider/src/main/java/org/apache/servicecomb/samples/springmvc/provider/SpringmvcProviderMain.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.springmvc.provider;
import org.apache.servicecomb.foundation.common.utils.BeanUtils;
public class SpringmvcProviderMain {
public static void main(String[] args) {
BeanUtils.init();
}
}
|
apache/servicecomb-samples | 1,087 | porter/gateway-service/src/main/java/org/apache/servicecomb/samples/porter/user/api/UserService.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.porter.user.api;
import java.util.concurrent.CompletableFuture;
public interface UserService {
// We can define different signature than user-service. This method is reactive.
CompletableFuture<SessionInfo> getSession(String sessionId);
}
|
apache/servicemix | 1,101 | logging/jms-appender/src/main/java/org/apache/servicemix/logging/jms/LoggingEventFormat.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.servicemix.logging.jms;
import org.ops4j.pax.logging.spi.PaxLoggingEvent;
/**
* Interface to represent an event message format, used for serializing log events into JMS messages
*/
public interface LoggingEventFormat {
public String toString(PaxLoggingEvent event);
}
|
apache/shardingsphere-elasticjob | 1,058 | spring/boot-starter/src/test/java/org/apache/shardingsphere/elasticjob/spring/boot/job/repository/BarRepository.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.elasticjob.spring.boot.job.repository;
/**
* Bar Repository.
*/
public interface BarRepository {
/**
* Get data by ID.
*
* @param id ID
* @return data
*/
String getById(int id);
}
|
apache/shardingsphere | 1,056 | mode/type/standalone/repository/api/src/main/java/org/apache/shardingsphere/mode/repository/standalone/StandalonePersistRepository.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.mode.repository.standalone;
import org.apache.shardingsphere.mode.spi.repository.PersistRepository;
/**
* Standalone persist repository.
*/
public interface StandalonePersistRepository extends PersistRepository {
}
|
apache/shardingsphere | 1,059 | parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/segment/ddl/CreateDefinitionSegment.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.sql.parser.statement.core.segment.ddl;
import org.apache.shardingsphere.sql.parser.statement.core.segment.SQLSegment;
/**
* Create definition segment.
*/
public interface CreateDefinitionSegment extends SQLSegment {
}
|
apache/sis | 1,101 | endorsed/src/org.apache.sis.storage.sql/main/org/apache/sis/storage/sql/feature/Resources_fr.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.sis.storage.sql.feature;
/**
* Messages in French language.
*/
public class Resources_fr extends Resources {
/**
* Constructs a new resource bundle loading data from
* the resource file of the same name as this class.
*/
public Resources_fr() {
}
}
|
apache/skywalking-java | 1,099 | test/plugin/runner-helper/src/main/java/org/apache/skywalking/plugin/test/helper/Main.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.plugin.test.helper;
public class Main {
public static void main(String[] args) throws Exception {
IConfiguration configuration = new ConfigurationImpl();
configuration.scenarioGenerator().generate(configuration);
System.exit(0);
}
}
|
apache/skywalking | 1,070 | oap-server/server-library/library-module/src/test/java/org/apache/skywalking/oap/server/library/module/TestModule.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.server.library.module;
public class TestModule extends ModuleDefine {
public TestModule() {
super("Test");
}
@Override
public Class<? extends Service>[] services() {
return new Class[0];
}
}
|
apache/solr | 1,111 | solr/api/src/java/org/apache/solr/client/api/model/SetClusterPropertyRequestBody.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 io.swagger.v3.oas.annotations.media.Schema;
public class SetClusterPropertyRequestBody {
@Schema(description = "The value to assign to the property.")
@JsonProperty("value")
public String value;
}
|
apache/stratos | 1,054 | components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/event/initializer/CompleteApplicationSignUpsRequestEvent.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.stratos.messaging.event.initializer;
import java.io.Serializable;
public class CompleteApplicationSignUpsRequestEvent extends InitializerEvent implements Serializable {
public CompleteApplicationSignUpsRequestEvent() {
}
}
|
apache/tapestry-5 | 1,100 | tapestry-core/src/test/java/org/apache/tapestry5/integration/reload/services/AppModule.java | // Copyright 2008, 2011 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.tapestry5.integration.reload.services;
import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.commons.MappedConfiguration;
import org.apache.tapestry5.http.TapestryHttpSymbolConstants;
public class AppModule
{
public static void contributeApplicationDefaults(MappedConfiguration<String, Object> conf)
{
conf.add(SymbolConstants.FILE_CHECK_INTERVAL, "0ms");
conf.add(TapestryHttpSymbolConstants.PRODUCTION_MODE, false);
}
}
|
apache/tinkerpop | 1,109 | gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/DT.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.tinkerpop.gremlin.process.traversal;
import org.apache.tinkerpop.gremlin.process.traversal.step.map.DateAddStep;
/**
* Tokens that are used to denote different periods of time.
* Used with {@link DateAddStep} step.
*/
public enum DT {
second,
minute,
hour,
day
}
|
apache/tomee | 1,053 | arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/bmp/remote/LittleFinderPK.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.openejb.arquillian.tests.bmp.remote;
public class LittleFinderPK extends StringPK {
private static final long serialVersionUID = 5782590322327281948L;
public LittleFinderPK(final String s) {
super(s);
}
}
|
apache/tomee | 1,081 | container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/event/ContainerSystemPostCreate.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.openejb.assembler.classic.event;
import org.apache.openejb.observer.Event;
/**
* @version $Rev$ $Date$
*/
@Event
public class ContainerSystemPostCreate {
@Override
public String toString() {
return "ContainerSystemPostCreate{}";
}
}
|
apache/tomee | 1,106 | server/openejb-http/src/main/java/org/apache/openejb/server/httpd/OpenEJBHttpEjbServer.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.openejb.server.httpd;
/**
* @version $Rev: 607077 $ $Date: 2007-12-27 15:55:23 +0100 (Thu, 27 Dec 2007) $
*/
public class OpenEJBHttpEjbServer extends HttpEjbServer {
public OpenEJBHttpEjbServer() {
super();
httpServer = new OpenEJBHttpServer();
}
}
|
apache/tomee | 1,118 | container/openejb-core/src/main/java/org/apache/openejb/testing/RandomPort.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.openejb.testing;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RandomPort {
String value();
}
|
apache/usergrid | 1,098 | stack/core/src/main/java/org/apache/usergrid/persistence/exceptions/QueryIterationException.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.usergrid.persistence.exceptions;
/**
* Thrown when an error occurs during query iteration
*
* @author tnine
*/
public class QueryIterationException extends RuntimeException {
public QueryIterationException( final String message ) {
super( message );
}
}
|
apache/usergrid | 1,116 | stack/core/src/main/java/org/apache/usergrid/mq/cassandra/io/QueueSearch.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.usergrid.mq.cassandra.io;
import org.apache.usergrid.mq.QueueQuery;
import org.apache.usergrid.mq.QueueResults;
/** @author tnine */
public interface QueueSearch
{
/** Get the results for this queue search */
public QueueResults getResults( String queuePath, QueueQuery query );
}
|
apache/wicket | 1,103 | wicket-examples/src/main/java/org/apache/wicket/examples/navomatic/Page1.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.examples.navomatic;
import org.apache.wicket.examples.WicketExamplePage;
/**
* Trivial page.
*
* @author Jonathan Locke
*/
public class Page1 extends WicketExamplePage
{
/**
* Constructor
*/
public Page1()
{
add(new NavomaticBorder("navomaticBorder"));
}
}
|
apache/wicket | 1,103 | wicket-examples/src/main/java/org/apache/wicket/examples/navomatic/Page3.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.examples.navomatic;
import org.apache.wicket.examples.WicketExamplePage;
/**
* Trivial page.
*
* @author Jonathan Locke
*/
public class Page3 extends WicketExamplePage
{
/**
* Constructor
*/
public Page3()
{
add(new NavomaticBorder("navomaticBorder"));
}
}
|
apache/wicket | 1,110 | wicket-request/src/main/java/org/apache/wicket/request/IRequestHandlerDelegate.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.request;
/**
* A {@link IRequestHandler} that delegates the actual work to another {@link IRequestHandler}.
*/
public interface IRequestHandlerDelegate extends IRequestHandler
{
/**
* @return the delegate {@link IRequestHandler}
*/
IRequestHandler getDelegateHandler();
}
|
apache/xmlgraphics-fop | 1,115 | fop-core/src/main/java/org/apache/fop/render/RendererConfigOption.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.
*/
/* $Id$ */
package org.apache.fop.render;
/**
* Implementations of this interface enumerate the various renderer configuration options available
* to users in the FOP conf.
*/
public interface RendererConfigOption {
/** The name of the option. */
String getName();
Object getDefaultValue();
}
|
google/binnavi | 1,105 | src/main/java/com/google/security/zynamics/binnavi/API/debug/MemoryListenerAdapter.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.API.debug;
// / Adapter class for simulated memory
/**
* Adapter class that can be used by objects that want to listen on target process memory but only
* need to process few events.
*/
public class MemoryListenerAdapter implements IMemoryListener {
@Override
public void changedMemory(final Memory memory, final long address, final int size) {
// Adapter method
}
@Override
public void clearedMemory(final Memory memory) {
// Adapter method
}
}
|
google/cel-java | 1,133 | runtime/src/main/java/dev/cel/runtime/Interpreter.java | // Copyright 2022 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
//
// 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 dev.cel.runtime;
import javax.annotation.concurrent.ThreadSafe;
import dev.cel.common.CelAbstractSyntaxTree;
import dev.cel.common.annotations.Internal;
/**
* Interface to a CEL interpreter.
*
* <p>CEL Library Internals. Do Not Use.
*/
@ThreadSafe
@Internal
public interface Interpreter {
/**
* Creates an interpretable for the given expression.
*
* <p>This method may run pre-processing and partial evaluation of the expression it gets passed.
*/
Interpretable createInterpretable(CelAbstractSyntaxTree ast);
}
|
google/conscrypt | 1,123 | android-stub/src/main/java/dalvik/system/BlockGuard.java | /*
* Copyright 2014 The Android Open Source Project
*
* 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 dalvik.system;
@SuppressWarnings("DoNotCallSuggester")
public class BlockGuard {
private BlockGuard() {}
public static Policy getThreadPolicy() {
throw new UnsupportedOperationException("Stub!");
}
public interface Policy { void onNetwork(); }
public static class PolicyWrapper implements Policy {
private PolicyWrapper() {}
@Override
public void onNetwork() {
throw new UnsupportedOperationException("Stub!");
}
}
}
|
google/paco | 1,129 | Paco-Server/src/com/google/sampling/experiential/server/QueryFactory.java | package com.google.sampling.experiential.server;
import com.pacoapp.paco.shared.model2.SQLQuery;
import com.pacoapp.paco.shared.util.Constants;
import com.pacoapp.paco.shared.util.ErrorMessages;
public class QueryFactory {
public static SearchQuery createSearchQuery(SQLQuery sqlQueryObj, Float pacoProtocol) throws Exception {
basicValidation(sqlQueryObj);
if (sqlQueryObj.isFullEventAndOutputs()) {
return new AllFieldsSearchQuery(sqlQueryObj, pacoProtocol);
} else {
return new CustomFieldsSearchQuery(sqlQueryObj, pacoProtocol);
}
}
private static void basicValidation(SQLQuery sqlQueryObj) throws Exception {
EventQueryStatus evQueryStatus = new EventQueryStatus();
evQueryStatus.setStatus(Constants.SUCCESS);
if (sqlQueryObj == null) {
throw new Exception(ErrorMessages.JSON_PARSER_EXCEPTION.getDescription());
}
if (sqlQueryObj.getCriteriaQuery() == null || sqlQueryObj.getCriteriaValue() == null || sqlQueryObj.getCriteriaValue().length == 0 ) {
throw new Exception(ErrorMessages.QUERY_CRITERIA_EMPTY_EXCEPTION.getDescription());
}
}
}
|
google/startup-os | 1,145 | examples/errorprone/Hello.java | /*
* Copyright 2018 The StartupOS 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
*
* 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.startupos.examples.errorprone;
// <editor-fold desc="Uncomment to test ProtobufCheck">
// import com.google.startupos.proto_vs_json.Protos.Person;
// </editor-fold>
public class Hello {
public static void main(String[] args) {
// <editor-fold desc="Uncomment to test StringFmtInPrintMethodsCheck">
// System.err.print(String.format("Hello: %s\n", "World"));
// </editor-fold>
// <editor-fold desc="Uncomment to test ProtobufCheck">
// Person.newBuilder().build();
// </editor-fold>
}
}
|
googleapis/discovery-artifact-manager | 1,106 | toolkit/src/main/java/com/google/api/codegen/ruby/RubyUtil.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
*
* 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.api.codegen.ruby;
import com.google.api.codegen.util.NamePath;
import com.google.api.codegen.util.VersionMatcher;
public class RubyUtil {
private static final String LONGRUNNING_PACKAGE_NAME = "Google::Longrunning";
public static boolean isLongrunning(String packageName) {
return packageName.equals(LONGRUNNING_PACKAGE_NAME);
}
public static boolean hasMajorVersion(String packageName) {
return VersionMatcher.isVersion(NamePath.doubleColoned(packageName).getHead());
}
}
|
googleapis/google-cloud-java | 1,028 | java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImportAptArtifactsMetadataOrBuilder.java | /*
* Copyright 2025 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
*
* 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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/devtools/artifactregistry/v1/apt_artifact.proto
// Protobuf Java Version: 3.25.8
package com.google.devtools.artifactregistry.v1;
public interface ImportAptArtifactsMetadataOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/google-cloud-java | 1,028 | java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImportYumArtifactsMetadataOrBuilder.java | /*
* Copyright 2025 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
*
* 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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/devtools/artifactregistry/v1/yum_artifact.proto
// Protobuf Java Version: 3.25.8
package com.google.devtools.artifactregistry.v1;
public interface ImportYumArtifactsMetadataOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata)
com.google.protobuf.MessageOrBuilder {}
|
googleapis/google-cloud-java | 1,030 | java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateEvaluationMetadataOrBuilder.java | /*
* Copyright 2025 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
*
* 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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/discoveryengine/v1beta/evaluation_service.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.discoveryengine.v1beta;
public interface CreateEvaluationMetadataOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata)
com.google.protobuf.MessageOrBuilder {}
|
googlearchive/android-GridViewPager | 1,086 | Wearable/src/main/java/com/example/android/wearable/gridviewpager/CustomFragment.java | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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.example.android.wearable.gridviewpager;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class CustomFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.custom_fragment, container, false);
}
}
|
googlearchive/caja | 1,131 | src/com/google/caja/util/Iterators.java |
package com.google.caja.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Set;
/**
* Utility methods for dealing with {@link Iterator iterators}.
*
* @author mikesamuel@gmail.com
*/
public final class Iterators {
public static <T> Iterator<T> filter(
final Iterator<T> underlying, final Set<T> forbidden) {
return new Iterator<T>() {
boolean hasNext;
T next;
public boolean hasNext() {
fetch();
return hasNext;
}
public T next() {
fetch();
if (!hasNext) { throw new NoSuchElementException(); }
T result = next;
hasNext = false;
next = null;
return result;
}
public void remove() {
underlying.remove();
}
private void fetch() {
if (hasNext) { return; }
while (underlying.hasNext()) {
next = underlying.next();
if (!forbidden.contains(next)) {
hasNext = true;
return;
}
}
next = null;
}
};
}
private Iterators() { /* not instantiable */ }
}
|
googlearchive/science-journal | 1,051 | OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/sensorapi/OptionsListener.java | /*
* Copyright 2016 Google Inc. 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 com.google.android.apps.forscience.whistlepunk.sensorapi;
/** Interface for an object that can receive new options */
public interface OptionsListener {
/**
* Apply user-set options that affect data collection and storage (for example, may include sample
* frequency, or a pin number for an Arduino-based remote sensor)
*
* @param settings
*/
void applyOptions(ReadableSensorOptions settings);
}
|
hibernate/hibernate-orm | 1,051 | hibernate-core/src/main/java/org/hibernate/boot/model/internal/CreateKeySecondPass.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.boot.model.internal;
import java.util.Map;
import org.hibernate.boot.spi.SecondPass;
import org.hibernate.mapping.JoinedSubclass;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.mapping.RootClass;
/**
* @author Emmanuel Bernard
*/
public class CreateKeySecondPass implements SecondPass {
private RootClass rootClass;
private JoinedSubclass joinedSubClass;
public CreateKeySecondPass(RootClass rootClass) {
this.rootClass = rootClass;
}
public CreateKeySecondPass(JoinedSubclass joinedSubClass) {
this.joinedSubClass = joinedSubClass;
}
@Override
public void doSecondPass(Map<String, PersistentClass> persistentClasses) {
if ( rootClass != null ) {
rootClass.createPrimaryKey();
}
else if ( joinedSubClass != null ) {
joinedSubClass.createPrimaryKey();
joinedSubClass.createForeignKey();
}
else {
throw new AssertionError( "rootClass and joinedSubClass are null" );
}
}
}
|
hibernate/hibernate-orm | 1,059 | hibernate-core/src/main/java/org/hibernate/sql/exec/internal/JdbcParametersImpl.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.sql.exec.internal;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.hibernate.sql.ast.tree.expression.JdbcParameter;
import org.hibernate.sql.exec.spi.JdbcParameters;
/**
* Standard implementation of JdbcParameters
*
* @author Steve Ebersole
*/
public class JdbcParametersImpl implements JdbcParameters {
private Set<JdbcParameter> jdbcParameters;
@Override
public void addParameter(JdbcParameter parameter) {
if ( jdbcParameters == null ) {
jdbcParameters = new HashSet<>();
}
jdbcParameters.add( parameter );
}
@Override
public void addParameters(Collection<JdbcParameter> parameters) {
if ( jdbcParameters == null ) {
jdbcParameters = new HashSet<>();
}
jdbcParameters.addAll( parameters );
}
@Override
public Set<JdbcParameter> getJdbcParameters() {
return jdbcParameters == null ? Collections.emptySet() : jdbcParameters;
}
}
|
hibernate/hibernate-search | 1,081 | engine/src/main/java/org/hibernate/search/engine/backend/mapping/spi/BackendMappingContext.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.backend.mapping.spi;
import org.hibernate.search.engine.backend.common.spi.EntityReferenceFactory;
import org.hibernate.search.engine.backend.reporting.spi.BackendMappingHints;
import org.hibernate.search.engine.backend.types.converter.runtime.ToDocumentValueConvertContext;
import org.hibernate.search.engine.search.projection.definition.spi.ProjectionRegistry;
import org.hibernate.search.engine.search.projection.spi.ProjectionMappedTypeContext;
/**
* Provides visibility from the lower layers of Hibernate Search (engine, backend)
* to the mapping defined in the upper layers.
*/
public interface BackendMappingContext {
BackendMappingHints hints();
ToDocumentValueConvertContext toDocumentValueConvertContext();
ProjectionRegistry projectionRegistry();
ProjectionMappedTypeContext mappedTypeContext(String mappedTypeName);
/**
* @return A {@link EntityReferenceFactory}.
*/
EntityReferenceFactory entityReferenceFactory();
}
|
openjdk/jdk8 | 1,127 | langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/package-info.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.
*/
@AnnotationType(optional="Package Annotation", required=1994)
package pkg;
|
openjdk/jdk8 | 1,128 | langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/SubInterface.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 pkg;
public interface SubInterface<V> extends SuperInterface<V> {}
|
openjdk/jdk8 | 1,141 | langtools/test/tools/javac/diags/examples/DuplicateClass.java | /*
* Copyright (c) 2010, 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.
*/
// key: compiler.err.duplicate.class
class DuplicateClass { }
class DuplicateClass { }
|
openjdk/jdk8 | 1,141 | langtools/test/tools/javadoc/generics/supertypes/pkg1/A.java | /*
* Copyright (c) 2003, 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;
import java.util.ArrayList;
public class A extends ArrayList<String> {
}
|
openjdk/jdk8 | 1,142 | langtools/test/tools/javac/warnings/6885255/T6885255.java | /**
* @test /nodynamiccopyright/
* @bug 6885255
* @summary -Xlint:rawtypes
* @compile/ref=T6885255.out -XDrawDiagnostics -Xlint:rawtypes T6885255.java
*/
class T6885255 {
static class Test<X, Y> {}
Class<Test> ct; //no warn - outer Class w/ raw param
Class<Test<Test, Test>> ctt; //warn - outer Class w/o raw param (2)
Class<Class<Test>> cct; //warn - outer Class w/o raw param
Class<Class<Test<Test, Test>>> cctt; //warn - outer Class w/o raw param (2)
Object o1 = (Test)null; //no warn - outer raw and cast
Object o2 = (Test<Test, Test>)null; //warn - inner raw (2)
Object o3 = (Class)null; //no warn - outer raw and cast
Object o4 = (Class<Test>)null; //no warn - outer Class w/ raw param
Object o5 = (Class<Test<Test, Test>>)null; //warn - outer Class w/ non raw param (2)
Object o6 = (Class<Class<Test<Test, Test>>>)null; //warn - outer Class w/ non raw param (2)
Object o7 = (Test<Class, Class>)null; //warn - inner raw (2)
Object o8 = (Test<Class<Test>, Class<Test>>)null; //warn - inner Class (2)
boolean b = null instanceof Test; //no warn - raw and instanceof
}
|
openjdk/jdk8 | 1,143 | langtools/test/tools/javac/staticImport/6665223/pkg/B.java | /*
* Copyright (c) 2008, 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 pkg;
class B extends B2 {}
abstract class B2 {
protected static void b() {}
}
|
openjdk/jdk8 | 1,152 | langtools/test/tools/javac/6342411/a/Base.java | /*
* Copyright (c) 2005, 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 a;
class Base {
public void f() {
System.out.println("Hello, world!");
}
}
|
oracle/nosql | 1,125 | kvmain/src/main/java/oracle/kv/impl/admin/PlanLocksHeldException.java | /*-
* Copyright (C) 2011, 2025 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle NoSQL Database for a copy of the license and
* additional information.
*/
package oracle.kv.impl.admin;
import oracle.kv.ContingencyException;
/**
* A checked exception used internally to communicate the fact that a given
* plan can't obtain its catalog locks. The id of the plan that does own the
* contested lock is made available.
*/
public class PlanLocksHeldException extends ContingencyException {
private final int owningPlanId;
private static final long serialVersionUID = 1L;
public PlanLocksHeldException(String message, int runningPlanId) {
super(message);
this.owningPlanId = runningPlanId;
}
public int getOwningPlanId() {
return owningPlanId;
}
}
|
apache/ctakes | 1,112 | ctakes-core/src/main/java/org/apache/ctakes/core/resource/StringMapResource.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.ctakes.core.resource;
import java.util.Map;
/**
* Resource that defines a map between a String (KEY) and Integer.
* @author Mayo Clinic
*/
public interface StringMapResource
{
/**
* Gets a map of String/String values.
* @return
*/
public Map getMap();
}
|
apache/cxf | 1,116 | testutils/src/main/java/org/apache/cxf/customer/CustomerNotFoundDetails.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.customer;
import jakarta.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "CustomerNotFoundDetails")
public class CustomerNotFoundDetails {
private long id;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
}
|
apache/cxf | 1,122 | tools/javato/ws/src/test/java/org/apache/cxf/tools/fortest/MyImage.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;
import java.awt.Image;
import jakarta.xml.bind.annotation.XmlMimeType;
import jakarta.xml.bind.annotation.XmlType;
@XmlType(name = "myImage", namespace = "http://fortest.tools.cxf.apache.org/")
public class MyImage {
@XmlMimeType("image/png")
protected Image myPhoto;
}
|
apache/deltaspike | 1,064 | deltaspike/modules/test-control/impl/src/test/java/org/apache/deltaspike/test/testcontrol/uc011/InterceptedBeanMethodLevel.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.testcontrol.uc011;
import jakarta.enterprise.context.RequestScoped;
@RequestScoped
public class InterceptedBeanMethodLevel
{
@TestInterceptor
public void test()
{
//do nothing - any method is fine
}
}
|
apache/deltaspike | 1,068 | deltaspike/modules/jsf/api/src/main/java/org/apache/deltaspike/jsf/spi/config/view/navigation/NavigationParameterStrategy.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.jsf.spi.config.view.navigation;
import org.apache.deltaspike.core.spi.InterceptorStrategy;
/**
* Allows to provide a custom {@link InterceptorStrategy}
*/
public interface NavigationParameterStrategy extends InterceptorStrategy
{
}
|
apache/directory-studio | 1,057 | tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/CheckAuthenticationDialogBot.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.directory.studio.test.integration.ui.bots;
public class CheckAuthenticationDialogBot extends DialogBot
{
public CheckAuthenticationDialogBot()
{
super( "Check Authentication" );
}
}
|
apache/dubbo-go-samples | 1,067 | compatibility/registry/servicediscovery/zookeeper/java-server/src/main/java/com/apache/dubbo/sample/basic/IGreeter.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.apache.dubbo.sample.basic;
import org.apache.dubbo.sample.hello.Helloworld;
public interface IGreeter {
/**
* <pre>
* Sends a greeting
* </pre>
*/
Helloworld.User sayHello(Helloworld.HelloRequest request);
}
|
apache/dubbo-spi-extensions | 1,027 | dubbo-serialization-extensions/dubbo-serialization-protobuf/src/test/java/org/apache/dubbo/common/serialize/protobuf/support/GenericProtobufSerializationTest.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.dubbo.common.serialize.protobuf.support;
public class GenericProtobufSerializationTest extends AbstractProtobufSerializationTest {
{
serialization = new GenericProtobufSerialization();
}
}
|
apache/eagle | 1,086 | eagle-security/eagle-security-common/src/main/java/org/apache/eagle/security/entity/SecurityEntityRepository.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.eagle.security.entity;
import org.apache.eagle.log.entity.repo.EntityRepository;
public class SecurityEntityRepository extends EntityRepository {
public SecurityEntityRepository() {
entitySet.add(HdfsUserCommandPatternEntity.class);
}
}
|
apache/empire-db | 1,129 | empire-db/src/main/java/org/apache/empire/dbms/DBMSFeature.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.empire.dbms;
/**
* This enum is used with the DBMSHandler::isSupported method to query database dbms capabilities.
*/
public enum DBMSFeature {
// Support Flags used by DBMSHandler::isSupported()
CREATE_SCHEMA,
SEQUENCES,
SEQUENCE_NEXTVAL,
QUERY_LIMIT_ROWS,
QUERY_SKIP_ROWS
}
|
apache/eventmesh | 1,094 | eventmesh-admin-server/src/main/java/org/apache/eventmesh/admin/server/web/pojo/TaskDetail.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.admin.server.web.pojo;
import org.apache.eventmesh.admin.server.web.db.entity.EventMeshJobInfo;
import lombok.Data;
/**
* Description:
*/
@Data
public class TaskDetail {
private EventMeshJobInfo fullTask;
private EventMeshJobInfo increaseTask;
}
|
apache/felix-dev | 1,048 | ipojo/manipulator/manipulator-it/ipojo-manipulator-manipulation-test/src/main/java/org/apache/felix/ipojo/runtime/core/components/SubMarker.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.felix.ipojo.runtime.core.components;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface SubMarker {
String subname();
}
|
apache/fesod | 1,109 | fesod/src/test/java/org/apache/fesod/excel/writesheet/WriteSheetData.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.writesheet;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.apache.fesod.excel.annotation.ExcelProperty;
@Getter
@Setter
@EqualsAndHashCode
public class WriteSheetData {
@ExcelProperty("字符串标题")
private String string;
}
|
apache/fineract | 1,111 | fineract-provider/src/test/java/org/apache/fineract/util/TimeZoneConstants.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.util;
public final class TimeZoneConstants {
public static final String ASIA_KOLKATA_ID = "Asia/Kolkata";
public static final String ASIA_MANILA_ID = "Asia/Manila";
public static final String EUROPE_BERLIN_ID = "Europe/Berlin";
private TimeZoneConstants() {}
}
|
apache/fory | 1,111 | java/fory-format/src/main/java/org/apache/fory/format/encoder/GeneratedRowEncoder.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.fory.format.encoder;
import org.apache.fory.builder.Generated;
import org.apache.fory.format.row.binary.BinaryRow;
/** A row format codec for java bean. */
public interface GeneratedRowEncoder extends Generated {
BinaryRow toRow(Object obj);
Object fromRow(BinaryRow row);
}
|
apache/geode | 1,088 | geode-core/src/main/java/org/apache/geode/internal/monitoring/executor/ScheduledThreadPoolExecutorWKAGroup.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.internal.monitoring.executor;
public class ScheduledThreadPoolExecutorWKAGroup extends AbstractExecutor {
public static final String GROUPNAME = "ScheduledThreadPoolExecutorWithKeepAlive";
public ScheduledThreadPoolExecutorWKAGroup() {
super(GROUPNAME);
}
}
|
apache/geode | 1,105 | geode-lucene/geode-lucene-test/src/main/java/org/apache/geode/cache/lucene/test/SubCustomer.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.cache.lucene.test;
import java.util.Collection;
public class SubCustomer extends Customer {
public SubCustomer(String name,
Collection<String> phoneNumbers,
Collection<Person> contacts,
Page[] myHomePages) {
super(name, phoneNumbers, contacts, myHomePages);
}
}
|
apache/geode | 1,122 | geode-junit/src/main/java/org/apache/geode/codeAnalysis/decode/cp/CpString.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.codeAnalysis.decode.cp;
import java.io.DataInputStream;
import java.io.IOException;
public class CpString extends Cp {
int string_index; // har har - points to a Utf8 holding the string's guts
CpString(DataInputStream source) throws IOException {
string_index = source.readUnsignedShort();
}
}
|
apache/grails-core | 1,103 | grails-shell-cli/src/main/groovy/org/grails/cli/compiler/grape/ProgressReporter.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
*
* 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 org.grails.cli.compiler.grape;
/**
* Reports progress on a dependency resolution operation.
*
* @author Andy Wilkinson
*/
@FunctionalInterface
interface ProgressReporter {
/**
* Notification that the operation has completed.
*/
void finished();
}
|
apache/grails-core | 1,115 | grails-core/src/main/groovy/grails/compiler/ast/AllArtefactClassInjector.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
*
* 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 grails.compiler.ast;
/**
* Extended marker interface that indicates this ClassInjector applies to all types of artefacts (but not all classes).
*
* @author Graeme Rocher
* @since 2.0
*/
public interface AllArtefactClassInjector extends ClassInjector {
// marker interface
}
|
apache/groovy | 1,107 | subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/Cache.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.groovy.json.internal;
/**
* Cache
*
* @param <KEY> key
* @param <VALUE> value
*/
public interface Cache<KEY, VALUE> {
void put(KEY key, VALUE value);
VALUE get(KEY key);
VALUE getSilent(KEY key);
void remove(KEY key);
int size();
}
|
apache/groovy | 1,109 | src/test/groovy/gls/annotations/closures/JavaAnnotationWithClassElementParameterized.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 gls.annotations.closures;
import groovy.lang.Closure;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface JavaAnnotationWithClassElementParameterized {
Class<? extends Closure> elem();
} |
apache/groovy | 1,132 | src/main/java/org/codehaus/groovy/runtime/GeneratedClosure.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.runtime;
import groovy.transform.Internal;
/**
* Marker interface to identify closures generated by the groovy compiler.
* For internal use only!
*
* @since 1.5
* @see org.codehaus.groovy.runtime.metaclass.ClosureMetaClass
*/
@Internal
public interface GeneratedClosure {}
|
apache/hadoop-common | 1,038 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/v2/app/webapp/ViewForTest.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.hadoop.mapreduce.v2.app.webapp;
import org.apache.hadoop.yarn.webapp.View;
/**
* override method render() for test
*/
public class ViewForTest extends View{
@Override
public void render() {
}
}
|
apache/hadoop-common | 1,091 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/PathIsDirectoryException.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.hadoop.fs;
/** EISDIR */
public class PathIsDirectoryException extends PathExistsException {
static final long serialVersionUID = 0L;
/** @param path for the exception */
public PathIsDirectoryException(String path) {
super(path, "Is a directory");
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.