repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/servicecomb-java-chassis | 1,072 | core/src/main/java/org/apache/servicecomb/core/event/InvocationBusinessMethodFinishEvent.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.core.event;
import org.apache.servicecomb.core.Invocation;
public class InvocationBusinessMethodFinishEvent extends InvocationBaseEvent {
public InvocationBusinessMethodFinishEvent(Invocation invocation) {
super(invocation);
}
}
|
apache/servicecomb-saga-actuator | 1,075 | saga-core/src/main/java/org/apache/servicecomb/saga/core/TransportFailedException.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;
public class TransportFailedException extends RuntimeException {
public TransportFailedException(String cause) {
super(cause);
}
public TransportFailedException(String cause, Throwable e) {
super(cause, e);
}
}
|
apache/servicecomb-samples | 1,084 | bmi/calculator/src/main/java/org/apache/servicecomb/samples/CalculatorService.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;
/**
* {@link CalculatorService} provides interface of actual BMI calculation.
*/
public interface CalculatorService {
/**
* @see CalculatorEndpoint#calculate(double, double)
*/
double calculate(double height, double weight);
}
|
apache/servicecomb-toolkit | 1,042 | oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ExampleValidatorFactory.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.toolkit.oasv.validation.factory;
import org.apache.servicecomb.toolkit.oasv.validation.api.ExampleValidator;
public interface ExampleValidatorFactory extends OasObjectValidatorFactory<ExampleValidator> {
}
|
apache/servicecomb-toolkit | 1,042 | oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OpenApiValidatorFactory.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.toolkit.oasv.validation.factory;
import org.apache.servicecomb.toolkit.oasv.validation.api.OpenApiValidator;
public interface OpenApiValidatorFactory extends OasObjectValidatorFactory<OpenApiValidator> {
}
|
apache/shardingsphere | 1,072 | infra/binder/core/src/main/java/org/apache/shardingsphere/infra/binder/engine/segment/SegmentType.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.infra.binder.engine.segment;
/**
* Segment type.
*/
public enum SegmentType {
PROJECTION, PREDICATE, HAVING, JOIN_ON, JOIN_USING, ORDER_BY, GROUP_BY, LOCK, SET_ASSIGNMENT, VALUES, COPY, INSERT_COLUMNS, DEFINITION_COLUMNS
}
|
apache/shenyu | 1,092 | shenyu-common/src/main/java/org/apache/shenyu/common/enums/TrieEventEnum.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.shenyu.common.enums;
/**
* Rule trie event enum.
*/
public enum TrieEventEnum {
/**
* Shenyu Trie insert event.
*/
INSERT,
/**
* Shenyu Trie update event.
*/
UPDATE,
/**
* Shenyu Trie remove event.
*/
REMOVE
}
|
apache/sis | 1,093 | endorsed/src/org.apache.sis.cloud.aws/main/org/apache/sis/cloud/aws/s3/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.cloud.aws.s3;
/**
* Messages in French language.
*/
final 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 | 1,074 | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/mqe/MQEValues.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.core.query.mqe;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
@Data
public class MQEValues {
private Metadata metric = new Metadata();
private List<MQEValue> values = new ArrayList<>();
}
|
apache/storm | 1,107 | examples/storm-starter/src/jvm/org/apache/storm/starter/tools/Rankable.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package org.apache.storm.starter.tools;
public interface Rankable extends Comparable<Rankable> {
Object getObject();
long getCount();
/**
* Note: We do not defensively copy the object wrapped by the Rankable. It is passed as is.
*
* @return a defensive copy
*/
Rankable copy();
}
|
apache/streampipes | 1,064 | streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/connect/IParserEventHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.streampipes.extensions.api.connect;
import org.apache.streampipes.commons.exceptions.connect.ParseException;
import java.util.Map;
public interface IParserEventHandler {
void handle(Map<String, Object> event) throws ParseException;
}
|
apache/streampipes | 1,066 | streampipes-client-api/src/main/java/org/apache/streampipes/client/api/live/IConfiguredEventProducer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.streampipes.client.api.live;
import org.apache.streampipes.model.runtime.Event;
import java.util.Map;
public interface IConfiguredEventProducer {
void publish(Event event);
void publish(Map<String, Object> event);
void close();
}
|
apache/struts | 1,077 | plugins/convention/src/test/java/org/apache/struts2/convention/actions/exclude/ExcludeAction.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.struts2.convention.actions.exclude;
import org.apache.struts2.convention.annotation.Action;
/**
* <p>
* This is a test action.
* </p>
*/
public class ExcludeAction {
@Action("exclude1")
public String run1() {
return null;
}
} |
apache/tapestry-5 | 1,070 | tapestry-hibernate-core/src/main/java/org/apache/tapestry5/hibernate/HibernateEntityPackageManager.java | // 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.hibernate;
import org.apache.tapestry5.ioc.annotations.UsesConfiguration;
import java.util.Collection;
/**
* Contains a set of contributed package names from which to load entities.
*
* The service's configuration is the names of Java packages to search for Hibernate entities.
*/
@UsesConfiguration(String.class)
public interface HibernateEntityPackageManager
{
/**
* Returns packages from which read entity classes
*/
Collection<String> getPackageNames();
}
|
apache/tapestry-5 | 1,097 | tapestry-core/src/main/java/org/apache/tapestry5/services/BeanEditContext.java | // Copyright 2008 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.services;
import org.apache.tapestry5.commons.AnnotationProvider;
/**
* Defines a context for editing a bean via {@link org.apache.tapestry5.corelib.components.BeanEditor}.
* This value is made available at render time via the {@link org.apache.tapestry5.annotations.Environmental} annotation.
*/
public interface BeanEditContext extends AnnotationProvider
{
/**
* @return The class of the bean under edit.
*/
Class<?> getBeanClass();
}
|
apache/tapestry-5 | 1,099 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/BlueMarker.java | // Copyright 2007, 2010 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.ioc.test;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(
{ PARAMETER, FIELD, METHOD })
@Retention(RUNTIME)
@Documented
public @interface BlueMarker
{
}
|
apache/thrift | 1,107 | lib/java/src/main/java/org/apache/thrift/meta_data/StructMetaData.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.thrift.meta_data;
import org.apache.thrift.TBase;
public class StructMetaData extends FieldValueMetaData {
public final Class<? extends TBase> structClass;
public StructMetaData(byte type, Class<? extends TBase> sClass) {
super(type);
this.structClass = sClass;
}
}
|
apache/tika | 1,106 | tika-core/src/main/java/org/apache/tika/exception/RuntimeSAXException.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.tika.exception;
import org.xml.sax.SAXException;
/**
* Use this to throw a SAXException in subclassed methods that don't throw SAXExceptions
*/
public class RuntimeSAXException extends RuntimeException {
public RuntimeSAXException(SAXException t) {
super(t);
}
}
|
apache/tomee | 1,101 | server/openejb-server/src/main/java/org/apache/openejb/server/ServiceFinder.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;
import java.io.IOException;
import java.util.Map;
import java.util.Properties;
/**
* @version $Rev$ $Date$
*/
public interface ServiceFinder {
Map<String, Properties> mapAvailableServices(Class interfase) throws IOException, ClassNotFoundException;
}
|
apache/wicket | 1,101 | wicket-core-tests/src/test/java/org/apache/wicket/MyPage4.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;
import org.apache.wicket.markup.html.WebPage;
/**
* Dummy Page with String parameter
*/
public class MyPage4 extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*
* @param text
*/
public MyPage4(final String text)
{
}
}
|
google/caliper | 1,104 | caliper-runner/src/main/java/com/google/caliper/runner/RunScoped.java | /*
* Copyright (C) 2013 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.caliper.runner;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.inject.Scope;
/**
* Annotation for bindings for which only one instance should be created for a single {@link
* CaliperRun}.
*/
@Target({TYPE, METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Scope
public @interface RunScoped {}
|
google/j2cl | 1,115 | transpiler/java/com/google/j2cl/common/ThreadLocalInterner.java | /*
* Copyright 2015 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.j2cl.common;
import com.google.common.collect.Interner;
import com.google.common.collect.Interners;
/** An interner that provides per thread isolation. */
// TODO(rlubble): This class should extend com.google.common.collect.Interner<T> but that class
// is marked @GwtIncompatible.
public class ThreadLocalInterner<T> {
private final ThreadLocal<Interner<T>> interner =
ThreadLocal.withInitial(Interners::newStrongInterner);
public T intern(T t) {
return interner.get().intern(t);
}
}
|
google/j2cl | 1,123 | jre/java/java/lang/IllegalArgumentException.java | /*
* Copyright 2008 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 java.lang;
/**
* See <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html">the
* official Java API doc</a> for details.
*/
public class IllegalArgumentException extends RuntimeException {
public IllegalArgumentException() {}
public IllegalArgumentException(String message) {
super(message);
}
public IllegalArgumentException(String message, Throwable cause) {
super(message, cause);
}
public IllegalArgumentException(Throwable cause) {
super(cause);
}
}
|
google/oss-fuzz | 1,116 | projects/apache-commons-compress/CompressorPack200Fuzzer.java | // Copyright 2024 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.
//
////////////////////////////////////////////////////////////////////////////////
import org.apache.commons.compress.compressors.pack200.Pack200CompressorInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
public class CompressorPack200Fuzzer extends BaseTests {
public static void fuzzerTestOneInput(byte[] data) {
try {
fuzzCompressorInputStream(new Pack200CompressorInputStream(new ByteArrayInputStream(data)));
} catch (IOException ignored) {
}
}
}
|
google/paco | 1,078 | Paco-Server/src/com/google/sampling/experiential/cloudsql/columns/EventServerColumns.java | package com.google.sampling.experiential.cloudsql.columns;
import com.pacoapp.paco.shared.model2.EventBaseColumns;
public class EventServerColumns extends EventBaseColumns {
public static final String WHO = "who";
//since when is a keyword, we have to always use a back tick when we use it in any sql query.
public static final String WHEN = "`when`";
public static final String WHEN_FRAC_SEC = "when_fractional_sec";
public static final String ARCHIVE_FLAG = "archive_flag";
public static final String JOINED = "joined";
public static final String SORT_DATE = "sort_date";
public static final String CLIENT_TIME_ZONE = "client_timezone";
public static final String PACO_VERSION = "paco_version";
public static final String APP_ID = "app_id";
public static final String SORT_DATE_UTC = "sort_date_utc";
public static final String RESPONSE_TIME_UTC = "response_time_utc";
public static final String SCHEDULE_TIME_UTC = "schedule_time_utc";
public static final String EXPERIMENT_VERSION_GROUP_MAPPING_ID = "experiment_version_group_mapping_id";
}
|
googleads/google-ads-java | 1,063 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/HotelCityInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface HotelCityInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.HotelCityInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return Whether the cityCriterion field is set.
*/
boolean hasCityCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return The cityCriterion.
*/
java.lang.String getCityCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return The bytes for cityCriterion.
*/
com.google.protobuf.ByteString
getCityCriterionBytes();
}
|
googleads/google-ads-java | 1,063 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/HotelCityInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface HotelCityInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.HotelCityInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return Whether the cityCriterion field is set.
*/
boolean hasCityCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return The cityCriterion.
*/
java.lang.String getCityCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return The bytes for cityCriterion.
*/
com.google.protobuf.ByteString
getCityCriterionBytes();
}
|
googleads/google-ads-java | 1,063 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/HotelCityInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface HotelCityInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.HotelCityInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return Whether the cityCriterion field is set.
*/
boolean hasCityCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return The cityCriterion.
*/
java.lang.String getCityCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string city_criterion = 2;</code>
* @return The bytes for cityCriterion.
*/
com.google.protobuf.ByteString
getCityCriterionBytes();
}
|
googleads/googleads-java-lib | 1,052 | modules/ads_lib_appengine/src/test/java/com/google/api/ads/common/lib/soap/jaxws/testing/mocks/ServiceClass.java | // Copyright 2012 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.api.ads.common.lib.soap.jaxws.testing.mocks;
import com.google.api.ads.common.lib.soap.jaxws.JaxWsHandler;
/**
* Mock of a JAX-WS service locator class used to test
* {@link JaxWsHandler#createSoapClient(com.google.api.ads.common.lib.soap.SoapServiceDescriptor)}.
*
*/
public class ServiceClass {
public CampaignServiceInterface getCampaignServiceInterfacePort() {
return new CampaignServiceInterfaceImpl();
}
}
|
googleapis/api-compiler | 1,079 | src/main/java/com/google/api/tools/framework/importers/swagger/aspects/AspectBuilder.java | /*
* Copyright (C) 2016 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.tools.framework.importers.swagger.aspects;
import com.google.api.Service;
import io.swagger.models.Swagger;
/**
* Interface for individual aspects that build out a piece of an {@link Service} based on fields in
* an {@link Swagger} object.
*/
public interface AspectBuilder {
/** Set fields in the associated {@link Service} object based on the input {@link Swagger} */
public void addFromSwagger(Service.Builder serviceBuilder, Swagger swagger);
}
|
googleapis/discovery-artifact-manager | 1,061 | toolkit/src/main/java/com/google/api/codegen/discovery/transformer/php/PhpSampleNamer.java | /* Copyright 2016 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.discovery.transformer.php;
import com.google.api.codegen.discovery.transformer.SampleNamer;
import com.google.api.codegen.util.Name;
import com.google.api.codegen.util.php.PhpNameFormatter;
public class PhpSampleNamer extends SampleNamer {
public PhpSampleNamer() {
super(new PhpNameFormatter());
}
@Override
public String getServiceVarName(String apiTypeName) {
return localVarName(Name.lowerCamel("service"));
}
}
|
googleapis/gapic-generator | 1,078 | src/main/java/com/google/api/codegen/configgen/nodes/metadata/FixmeComment.java | /* Copyright 2017 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 com.google.api.codegen.configgen.nodes.metadata;
/** Comment decorator that adds a FIXME heading. */
public class FixmeComment implements Comment {
private final Comment comment;
public FixmeComment(String comment) {
this(new DefaultComment(comment));
}
public FixmeComment(Comment comment) {
this.comment = comment;
}
@Override
public String generate() {
String text = comment.generate();
return text.isEmpty() ? "" : "FIXME: " + text;
}
}
|
googlearchive/leanback-showcase | 1,054 | app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/media/MusicExampleActivity.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 android.support.v17.leanback.supportleanbackshowcase.app.media;
import android.app.Activity;
import android.os.Bundle;
import android.support.v17.leanback.supportleanbackshowcase.R;
/**
* TODO: Javadoc
*/
public class MusicExampleActivity extends Activity {
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_music_example);
}
}
|
googlemaps/react-native-navigation-sdk | 1,084 | android/src/main/java/com/google/android/react/navsdk/JsErrors.java | /**
* Copyright 2023 Google LLC
*
* <p>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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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.react.navsdk;
public class JsErrors {
public static final String NO_NAVIGATOR_ERROR_CODE = "NO_NAVIGATOR_ERROR_CODE";
public static final String NO_NAVIGATOR_ERROR_MESSAGE =
"Make sure to initialize the navigator is ready before executing.";
public static final String NO_MAP_ERROR_CODE = "NO_MAP_ERROR_CODE";
public static final String NO_MAP_ERROR_MESSAGE =
"Make sure to initialize the map view has been initialized before executing.";
}
|
hibernate/hibernate-ogm | 1,055 | core/src/main/java/org/hibernate/ogm/datastore/keyvalue/options/navigation/spi/BaseKeyValueStorePropertyContext.java | /*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.datastore.keyvalue.options.navigation.spi;
import org.hibernate.ogm.datastore.keyvalue.options.navigation.KeyValueStoreEntityContext;
import org.hibernate.ogm.datastore.keyvalue.options.navigation.KeyValueStorePropertyContext;
import org.hibernate.ogm.options.navigation.spi.BasePropertyContext;
import org.hibernate.ogm.options.navigation.spi.ConfigurationContext;
/**
* Converts key/value store property-level options.
*
* @author Gunnar Morling
*/
public abstract class BaseKeyValueStorePropertyContext<E extends KeyValueStoreEntityContext<E, P>, P extends KeyValueStorePropertyContext<E, P>> extends
BasePropertyContext<E, P> implements KeyValueStorePropertyContext<E, P> {
public BaseKeyValueStorePropertyContext(ConfigurationContext context) {
super( context );
}
}
|
hibernate/hibernate-orm | 1,032 | tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/SqmTypeUtils.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.processor.util;
import org.hibernate.query.criteria.JpaEntityJoin;
import org.hibernate.query.criteria.JpaRoot;
import org.hibernate.query.criteria.JpaSelection;
import org.hibernate.query.sqm.tree.select.SqmSelectClause;
import org.hibernate.query.sqm.tree.select.SqmSelectStatement;
public final class SqmTypeUtils {
private SqmTypeUtils() {
}
public static String resultType(SqmSelectStatement<?> selectStatement) {
final JpaSelection<?> selection = selectStatement.getSelection();
if (selection instanceof SqmSelectClause from) {
return from.getSelectionItems().size() > 1
? "Object[]"
: from.getSelectionItems().get(0).getJavaTypeName();
}
else if (selection instanceof JpaRoot<?> root) {
return root.getJavaTypeName();
}
else if (selection instanceof JpaEntityJoin<?, ?> join) {
return join.getJavaTypeName();
}
else {
return selection.getJavaTypeName();
}
}
}
|
hibernate/hibernate-orm | 1,034 | hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/EntityListenerViaXmlTest.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.jpa.callbacks.xml;
import org.hibernate.testing.orm.junit.JiraKey;
import org.hibernate.testing.orm.junit.EntityManagerFactoryScope;
import org.hibernate.testing.orm.junit.Jpa;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author Steve Ebersole
*/
@Jpa(
xmlMappings = "org/hibernate/orm/test/jpa/callbacks/xml/MyEntity.orm.xml"
)
public class EntityListenerViaXmlTest {
@AfterEach
public void tearDown(EntityManagerFactoryScope scope) {
scope.getEntityManagerFactory().getSchemaManager().truncate();
}
@Test
@JiraKey(value = "HHH-9771")
public void testUsage(EntityManagerFactoryScope scope) {
JournalingListener.reset();
scope.inTransaction(
entityManager -> entityManager.persist( new MyEntity( 1, "steve" ) )
);
assertEquals( 1, JournalingListener.getPrePersistCount() );
}
}
|
hibernate/hibernate-orm | 1,039 | hibernate-core/src/main/java/org/hibernate/tool/schema/internal/StandardAuxiliaryDatabaseObjectExporter.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.tool.schema.internal;
import org.hibernate.boot.Metadata;
import org.hibernate.boot.model.relational.AuxiliaryDatabaseObject;
import org.hibernate.boot.model.relational.SqlStringGenerationContext;
import org.hibernate.dialect.Dialect;
import org.hibernate.tool.schema.spi.Exporter;
/**
* @author Steve Ebersole
*/
public class StandardAuxiliaryDatabaseObjectExporter implements Exporter<AuxiliaryDatabaseObject> {
private final Dialect dialect;
public StandardAuxiliaryDatabaseObjectExporter(Dialect dialect) {
this.dialect = dialect;
}
@Override
public String[] getSqlCreateStrings(AuxiliaryDatabaseObject object, Metadata metadata,
SqlStringGenerationContext context) {
return object.sqlCreateStrings( context );
}
@Override
public String[] getSqlDropStrings(AuxiliaryDatabaseObject object, Metadata metadata,
SqlStringGenerationContext context) {
return object.sqlDropStrings( context );
}
}
|
hibernate/hibernate-orm | 1,056 | hibernate-core/src/main/java/org/hibernate/service/spi/SessionFactoryServiceRegistryFactory.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.service.spi;
import org.hibernate.boot.spi.SessionFactoryOptions;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.service.Service;
/**
* Contract for builder of {@link SessionFactoryServiceRegistry} instances.
* <p>
* Is itself a service within the standard service registry.
*
* @author Steve Ebersole
*/
public interface SessionFactoryServiceRegistryFactory extends Service {
/**
* Create the registry.
*
* @param sessionFactory The (still being built) session factory. Generally this is useful
* for grabbing a reference for later use. However, care should be taken when invoking on
* the session factory until after it has been fully initialized.
* @param sessionFactoryOptions The build options.
*
* @return The registry
*/
SessionFactoryServiceRegistry buildServiceRegistry(
SessionFactoryImplementor sessionFactory,
SessionFactoryOptions sessionFactoryOptions);
}
|
hibernate/hibernate-search | 1,025 | mapper/orm-outbox-polling/src/main/java/org/hibernate/search/mapper/orm/outboxpolling/impl/OutboxPollingInternalConfigurer.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.mapper.orm.outboxpolling.impl;
import org.hibernate.search.mapper.orm.outboxpolling.cluster.impl.AgentRepositoryProvider;
import org.hibernate.search.mapper.orm.outboxpolling.event.impl.DefaultOutboxEventFinder;
import org.hibernate.search.mapper.orm.outboxpolling.event.impl.OutboxEventFinderProvider;
/**
* An internal configurer, used for tests.
*/
public interface OutboxPollingInternalConfigurer {
OutboxEventFinderProvider wrapEventFinder(DefaultOutboxEventFinder.Provider delegate);
AgentRepositoryProvider wrapAgentRepository(AgentRepositoryProvider delegate);
OutboxPollingInternalConfigurer DEFAULT = new OutboxPollingInternalConfigurer() {
public OutboxEventFinderProvider wrapEventFinder(DefaultOutboxEventFinder.Provider delegate) {
return delegate;
}
public AgentRepositoryProvider wrapAgentRepository(AgentRepositoryProvider delegate) {
return delegate;
}
};
}
|
hibernate/hibernate-validator | 1,037 | engine/src/main/java/org/hibernate/validator/internal/engine/resolver/TraverseAllTraversableResolver.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.validator.internal.engine.resolver;
import java.lang.annotation.ElementType;
import jakarta.validation.Path;
import jakarta.validation.Path.Node;
import jakarta.validation.TraversableResolver;
/**
* {@link TraversableResolver} considering that all properties are reachable and cascadable.
* <p>
* This is the default behavior if Jakarta Persistence is not detected in the classpath.
*
* @author Guillaume Smet
*/
class TraverseAllTraversableResolver implements TraversableResolver {
TraverseAllTraversableResolver() {
}
@Override
public boolean isReachable(Object traversableObject, Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject,
ElementType elementType) {
return true;
}
@Override
public boolean isCascadable(Object traversableObject, Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject,
ElementType elementType) {
return true;
}
}
|
hibernate2011/RosClient | 1,111 | app/src/main/java/com/jilk/ros/rosapi/message/Topic.java | /**
* Copyright (c) 2014 Jilk Systems, Inc.
*
* This file is part of the Java ROSBridge Client.
*
* The Java ROSBridge Client is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The Java ROSBridge Client 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 for more details.
*
* You should have received a copy of the GNU General Public License
* along with the Java ROSBridge Client. If not, see http://www.gnu.org/licenses/.
*
*/
package com.jilk.ros.rosapi.message;
import com.jilk.ros.message.Message;
import com.jilk.ros.message.MessageType;
@MessageType(string = "rosapi/Topic")
public class Topic extends Message {
public String topic;
public Topic() {}
public Topic(String topic) {
this.topic = topic;
}
} |
openjdk/apidiff | 1,141 | test/junit/apitest/lib/package-info.java | /*
* Copyright (c) 2019, 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.
*/
/**
* Library and support code for testing the "apidiff" tool.
*/
package apitest.lib;
|
openjdk/jdk8 | 1,103 | jaxp/src/com/sun/org/apache/xalan/internal/xsltc/CollatorFactory.java | /*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001-2004 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.
*/
/*
* $Id: CollatorFactory.java,v 1.2.4.1 2005/08/31 10:16:33 pvedula Exp $
*/
package com.sun.org.apache.xalan.internal.xsltc;
import java.text.Collator;
import java.util.Locale;
/**
* @author W. Eliot Kimber (eliot@isogen.com)
* @author Santiago Pericas-Geertsen
*/
public interface CollatorFactory {
public Collator getCollator(String lang, String country);
public Collator getCollator(Locale locale);
}
|
openjdk/jdk8 | 1,109 | langtools/test/tools/javac/lambda/LambdaExpr19.java | /*
* @test /nodynamiccopyright/
* @bug 8003280
* @summary Add lambda tests
* check that inner scopes are left after a lambda check exception has been thrown
* @compile/fail/ref=LambdaExpr19.out -XDrawDiagnostics LambdaExpr19.java
*/
class LambdaExpr19 {
interface SAM {
String m();
}
void m(SAM s) { }
void testTry() {
m(() -> {
try { return 1; }
catch (Exception e) { }
});
}
void testTryWithResources() {
m(() -> {
try (AutoCloseable c = null) { return 1; }
catch (Exception e) { }
});
}
void testSwitch() {
m(() -> {
switch (1) {
default: return 1;
}
});
}
void testFor() {
m(() -> {
for (;;) {
return 1;
}
});
}
void testForeach() {
m(() -> {
for (Object o : new Object[] { null , null }) {
return 1;
}
});
}
}
|
openjdk/jdk8 | 1,119 | langtools/test/tools/javac/defaultMethods/static/import/pkg/A.java | /*
* Copyright (c) 2012, 2013, 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 A {
static void m() { }
}
|
openjdk/jdk8 | 1,120 | langtools/test/tools/javac/importContext/anonPackage/bar/Baz.java | /*
* Copyright (c) 2000, 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 bar;
public class Baz {
public static void test() {}
}
|
openjdk/jdk8 | 1,120 | langtools/test/tools/javac/processing/model/6194785/T6194785a.java | /*
* Copyright (c) 2006, 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 foo;
public class T6194785a {
void foo(String bar) {}
}
|
openjdk/jdk8 | 1,121 | langtools/test/tools/javac/diags/examples/IllegalUnderscore.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.illegal.underscore
class X {
int i = 1_;
}
|
openjdk/jdk8 | 1,129 | langtools/test/com/sun/javadoc/testSeeTag/pkg/Test.java | /*
* Copyright (c) 2013, 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;
import java.util.List;
/** @see List */
public class Test { }
|
openjdk/jdk8 | 1,130 | langtools/test/tools/javac/generics/7007615/acc1/p1/C.java | /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p1;
public class C<T> { void m(T arg) { } /* implicit: m(Object) */ }
|
openjdk/jdk8 | 1,130 | langtools/test/tools/javac/generics/7007615/acc2/p1/C.java | /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p1;
public class C<T> { void m(T arg) { } /* implicit: m(Object) */ }
|
openjdk/jdk8 | 1,130 | langtools/test/tools/javadoc/6964914/JavadocWarning.java | /*
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class JavadocWarning {
/** @see DoesNotExist */
int x;
}
|
openjdk/jtreg | 1,111 | test/modlibs/libs/patchmods/java.base/java/util/streams/StreamsHelper.java | /*
* Copyright (c) 2015, 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 java.util.streams;
public class StreamsHelper {
}
|
openjdk/jtreg | 1,147 | test/problemList/ExcludeNever.java | /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
*/
public class ExcludeNever {
public static void main(String[] args) { }
}
|
openjdk/jtreg | 1,152 | test/statusFilter/p2/T2.java | /*
* Copyright (c) 2019, 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.
*/
/*
* @test
* @ignore
*/
public class T2 {
public static void main(String... args) {
}
}
|
oracle/coherence | 1,056 | prj/examples/guides/210-ssl/src/test/java/com/oracle/coherence/guides/ssl/loaders/CustomPrivateKeyLoader.java | /*
* Copyright (c) 2022 Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* https://oss.oracle.com/licenses/upl.
*/
package com.oracle.coherence.guides.ssl.loaders;
import com.tangosol.net.ssl.AbstractPrivateKeyLoader;
import com.tangosol.net.ssl.PrivateKeyLoader;
import com.tangosol.util.Resources;
import java.io.IOException;
import java.io.InputStream;
// #tag::test[]
/**
* An example implementation of a {@link PrivateKeyLoader} which loads a private key from a file.
*
* @author Tim Middleton 2022.06.16
*/
public class CustomPrivateKeyLoader
extends AbstractPrivateKeyLoader
{
public CustomPrivateKeyLoader(String url)
{
super(url);
}
@Override
protected InputStream getInputStream() throws IOException
{
try
{
return Resources.findInputStream(m_sName);
}
catch (IOException e)
{
throw new IOException(e);
}
}
}
// #end::test[] |
oracle/coherence | 1,064 | prj/coherence-core/src/main/java/com/tangosol/coherence/config/builder/storemanager/BinaryStoreManagerBuilder.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.coherence.config.builder.storemanager;
import com.tangosol.config.expression.ParameterResolver;
import com.tangosol.io.BinaryStoreManager;
/**
* A {@link BinaryStoreManagerBuilder} is responsible for realizing {@link BinaryStoreManager}s.
*
* @author pfm 2011.11.30
* @since Coherence 12.1.2
*/
public interface BinaryStoreManagerBuilder
{
/**
* Realize a {@link BinaryStoreManager} given the provided parameters.
*
* @param resolver the {@link ParameterResolver} for resolving expressions and runtime parameters
* @param loader the {@link ClassLoader} for loading classes (if necessary)
* @param fPaged the flag indicating whether the map is paged
*
* @return a {@link BinaryStoreManager}
*/
public BinaryStoreManager realize(ParameterResolver resolver, ClassLoader loader, boolean fPaged);
}
|
oracle/coherence | 1,088 | prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Ifgt.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.dev.assembler;
import java.io.IOException;
import java.io.DataInput;
import java.io.DataOutput;
/**
* The IFGT op branches to the label if the top integer on the stack is
* greater than zero.
* <p><code><pre>
* JASM op : IFGT (0x9d)
* JVM byte code(s): IFGT (0x9d)
* Details :
* </pre></code>
*
* @version 0.50, 06/14/98, assembler/dis-assembler
* @author Cameron Purdy
*/
public class Ifgt extends OpBranch implements Constants
{
// ----- constructors ---------------------------------------------------
/**
* Construct the op.
*
* @param label the label to branch to
*/
public Ifgt(Label label)
{
super(IFGT, label);
}
// ----- data members ---------------------------------------------------
/**
* The name of this class.
*/
private static final String CLASS = "Ifgt";
}
|
oracle/coherence | 1,088 | prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Ifne.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.dev.assembler;
import java.io.IOException;
import java.io.DataInput;
import java.io.DataOutput;
/**
* The IFNE op branches to the label if the top integer on the stack is not
* equal to zero.
* <p><code><pre>
* JASM op : IFNE (0x9a)
* JVM byte code(s): IFNE (0x9a)
* Details :
* </pre></code>
*
* @version 0.50, 06/14/98, assembler/dis-assembler
* @author Cameron Purdy
*/
public class Ifne extends OpBranch implements Constants
{
// ----- constructors ---------------------------------------------------
/**
* Construct the op.
*
* @param label the label to branch to
*/
public Ifne(Label label)
{
super(IFNE, label);
}
// ----- data members ---------------------------------------------------
/**
* The name of this class.
*/
private static final String CLASS = "Ifne";
}
|
apache/commons-numbers | 1,084 | commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/Sin.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.commons.numbers.rootfinder;
import java.util.function.DoubleUnaryOperator;
/**
* Auxiliary class for testing solvers.
*/
class Sin implements DoubleUnaryOperator {
@Override
public double applyAsDouble(double x) {
return Math.sin(x);
}
}
|
apache/ctakes | 1,089 | ctakes-ytex/src/main/java/org/apache/ctakes/ytex/kernel/evaluator/LinKernel.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.ytex.kernel.evaluator;
import org.springframework.beans.factory.InitializingBean;
/*
* @deprecated
*/
public class LinKernel extends SemanticSimKernel implements InitializingBean {
public LinKernel() {
super();
this.setMetricNames("LIN");
}
}
|
apache/curator | 1,098 | curator-framework/src/main/java/org/apache/curator/framework/api/GetDataBuilder.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.curator.framework.api;
public interface GetDataBuilder
extends Watchable<BackgroundPathable<byte[]>>,
BackgroundPathable<byte[]>,
Statable<WatchPathable<byte[]>>,
Decompressible<GetDataWatchBackgroundStatable> {}
|
apache/cxf | 1,090 | rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/type/java5/dto/CollectionDTO.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.aegis.type.java5.dto;
import java.util.List;
public class CollectionDTO {
List<String> strings;
public List<String> getStrings() {
return strings;
}
public void setStrings(List<String> strings) {
this.strings = strings;
}
}
|
apache/cxf | 1,103 | rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spi/WrapperClassCreator.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.jaxws.spi;
import java.util.Set;
import org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean;
import org.apache.cxf.service.model.InterfaceInfo;
public interface WrapperClassCreator {
Set<Class<?>> generate(JaxWsServiceFactoryBean fact, InterfaceInfo inf, boolean q);
}
|
apache/directory-server | 1,070 | protocol-dns/src/main/java/org/apache/directory/server/dns/store/jndi/operations/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.
*
*/
/**
* Provides Command pattern objects for working with the JNDI backing store.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
package org.apache.directory.server.dns.store.jndi.operations;
|
apache/directory-studio | 1,049 | tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/ObjectClassEditorBot.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 ObjectClassEditorBot extends BaseSchemaEditorBot
{
public ObjectClassEditorBot( String title )
{
super( title );
}
}
|
apache/doris-manager | 1,056 | manager/general/src/main/java/org/apache/doris/stack/exception/ConfigItemException.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.doris.stack.exception;
public class ConfigItemException extends Exception {
public static final String MESSAGE = "配置信息错误,请检查后重新配置:";
public ConfigItemException(String errorInfo) {
super(MESSAGE + errorInfo);
}
}
|
apache/dubbo | 1,070 | dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/mapping/condition/Condition.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.rpc.protocol.tri.rest.mapping.condition;
import org.apache.dubbo.remoting.http12.HttpRequest;
public interface Condition<T, R extends HttpRequest> {
T combine(T other);
T match(R request);
int compareTo(T other, R request);
}
|
apache/felix-dev | 1,035 | ipojo/runtime/core-it/ipojo-core-configuration-admin-test/src/main/java/org/apache/felix/ipojo/runtime/core/services/CheckService.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.services;
import java.util.Properties;
public interface CheckService {
public static final String foo = "foo";
public boolean check();
public Properties getProps();
}
|
apache/felix-dev | 1,037 | ipojo/runtime/composite-it/ipojo-composite-runtime-test/src/main/java/org/apache/felix/ipojo/runtime/core/services/CheckService.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.services;
import java.util.Properties;
public interface CheckService {
public static final String foo = "foo";
public boolean check();
public Properties getProps();
}
|
apache/felix-dev | 1,037 | ipojo/runtime/core-it/ipojo-core-service-providing-test/src/main/java/org/apache/felix/ipojo/runtime/core/services/CheckService.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.services;
import java.util.Properties;
public interface CheckService {
public static final String foo = "foo";
public boolean check();
public Properties getProps();
}
|
apache/flink | 1,054 | flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/testutils/junit/FailsInGHAContainerWithRootUser.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.testutils.junit;
/**
* Collects tests that fail in GitHub Actions workflows that execute the tests in containers as a
* root user.
*
* <p>See FLINK-27082/FLINK-33903
*/
public interface FailsInGHAContainerWithRootUser {}
|
apache/flink | 1,081 | flink-runtime/src/main/java/org/apache/flink/runtime/asyncprocessing/declare/DeclarationException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.runtime.asyncprocessing.declare;
/** Exception thrown when something wrong with declaration happens. */
public class DeclarationException extends RuntimeException {
public DeclarationException(String message) {
super(message);
}
}
|
apache/flink | 1,081 | flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/iomanager/BufferFileSegmentReader.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.runtime.io.disk.iomanager;
import java.io.IOException;
public interface BufferFileSegmentReader extends FileIOChannel {
void read() throws IOException;
void seekTo(long position) throws IOException;
boolean hasReachedEndOfFile();
}
|
apache/flink | 1,082 | flink-core/src/test/java/org/apache/flink/testutils/serialization/types/SerializationTestType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.testutils.serialization.types;
import org.apache.flink.core.io.IOReadableWritable;
import java.util.Random;
public interface SerializationTestType extends IOReadableWritable {
SerializationTestType getRandom(Random rnd);
int length();
}
|
apache/flink | 1,098 | flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/EventComparator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.cep;
import java.io.Serializable;
import java.util.Comparator;
/**
* Custom comparator used to compares two events.
*
* @param <T> Type of the event
*/
public interface EventComparator<T> extends Comparator<T>, Serializable {
long serialVersionUID = 1L;
}
|
apache/flink | 1,099 | flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/TaskActions.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.runtime.taskmanager;
/** Actions which can be performed on a {@link Task}. */
public interface TaskActions {
/**
* Fail the owning task with the given throwable.
*
* @param cause of the failure
*/
void failExternally(Throwable cause);
}
|
apache/fluss | 1,096 | fluss-common/src/test/java/org/apache/fluss/plugin/jar/pluginb/OtherTestServiceB.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.fluss.plugin.jar.pluginb;
import org.apache.fluss.plugin.OtherTestSpi;
/** Implementation of {@link OtherTestSpi}. */
public class OtherTestServiceB implements OtherTestSpi {
@Override
public String otherTestMethod() {
return getClass().getName();
}
}
|
apache/freemarker | 1,083 | freemarker-test-utils/src/main/java/freemarker/ext/beans/DefaultObjectWrapperInc2003020.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 freemarker.ext.beans;
import freemarker.template.Configuration;
public class DefaultObjectWrapperInc2003020 extends DefaultObjectWrapperWithSortedMethods {
public DefaultObjectWrapperInc2003020() {
super(Configuration.VERSION_2_3_20, false);
}
}
|
apache/freemarker | 1,083 | freemarker-test-utils/src/main/java/freemarker/ext/beans/DefaultObjectWrapperInc2003021.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 freemarker.ext.beans;
import freemarker.template.Configuration;
public class DefaultObjectWrapperInc2003021 extends DefaultObjectWrapperWithSortedMethods {
public DefaultObjectWrapperInc2003021() {
super(Configuration.VERSION_2_3_21, false);
}
}
|
apache/freemarker | 1,083 | freemarker-test-utils/src/main/java/freemarker/ext/beans/DefaultObjectWrapperInc2003022.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 freemarker.ext.beans;
import freemarker.template.Configuration;
public class DefaultObjectWrapperInc2003022 extends DefaultObjectWrapperWithSortedMethods {
public DefaultObjectWrapperInc2003022() {
super(Configuration.VERSION_2_3_22, false);
}
}
|
apache/gobblin | 1,042 | gobblin-modules/gobblin-kafka-common/src/main/java/org/apache/gobblin/source/extractor/extract/kafka/PreviousOffsetNotFoundException.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.gobblin.source.extractor.extract.kafka;
@SuppressWarnings("serial")
public class PreviousOffsetNotFoundException extends Exception {
public PreviousOffsetNotFoundException(String message) {
super(message);
}
}
|
apache/gobblin | 1,084 | gobblin-metastore/src/test/java/org/apache/gobblin/metastore/testing/ITestMetastoreDatabase.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.gobblin.metastore.testing;
import java.io.Closeable;
import java.net.URISyntaxException;
public interface ITestMetastoreDatabase extends Closeable {
String getJdbcUrl() throws URISyntaxException;
void resetDatabase(String version) throws Exception;
}
|
apache/hadoop-common | 1,039 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapred/WrappedJvmID.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.mapred;
/**
* A simple wrapper for increasing the visibility.
*/
public class WrappedJvmID extends JVMId {
public WrappedJvmID(JobID jobID, boolean mapTask, int nextInt) {
super(jobID, mapTask, nextInt);
}
}
|
apache/hadoop | 1,034 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/security/token/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.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.mapreduce.security.token;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop | 1,049 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/reader/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.
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
package org.apache.hadoop.yarn.api.records.timelineservice.reader;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop | 1,049 | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timelineservice/writer/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.
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
package org.apache.hadoop.yarn.api.records.timelineservice.writer;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/hadoop | 1,079 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/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.
*/
/**
* Support for service-level authorization.
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
package org.apache.hadoop.security.authorize;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/harmony | 1,093 | classlib/modules/security/src/main/java/common/java/security/interfaces/RSAKey.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.security.interfaces;
import java.math.BigInteger;
/**
* The base interface for PKCS#1 RSA public and private keys.
*/
public interface RSAKey {
/**
* Returns the modulus.
*
* @return the modulus.
*/
public BigInteger getModulus();
} |
apache/harmony | 1,104 | classlib/modules/sound/src/main/java/javax/sound/sampled/TargetDataLine.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.sound.sampled;
public interface TargetDataLine extends DataLine {
void open(AudioFormat format) throws LineUnavailableException;
void open(AudioFormat format, int bufferSize)
throws LineUnavailableException;
int read(byte[] b, int off, int len);
}
|
apache/harmony | 1,110 | classlib/modules/luni/src/main/java/java/net/SocketImplFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.net;
/**
* This interface defines a factory for socket implementations.
*/
public interface SocketImplFactory {
/**
* Creates a new {@code SocketImpl} instance.
*
* @return the created {@code SocketImpl} instance.
*/
SocketImpl createSocketImpl();
}
|
apache/harmony | 1,113 | classlib/modules/rmi/src/main/java/java/rmi/AccessException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.rmi;
public class AccessException extends RemoteException {
private static final long serialVersionUID = 6314925228044966088L;
public AccessException(String msg, Exception cause) {
super(msg, cause);
}
public AccessException(String msg) {
super(msg);
}
}
|
apache/hertzbeat | 1,041 | template-marketplace/hertzbeat-template-hub/src/test/java/org/apache/hertzbeat/templatehub/HertzbeatTemplateHubApplicationTests.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.hertzbeat.templatehub;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class HertzbeatTemplateHubApplicationTests {
@Test
void contextLoads() {
}
}
|
apache/hop | 1,057 | plugins/transforms/streamschemamerge/src/test/java/org/apache/hop/pipeline/transforms/streamschemamerge/TestFailedException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.pipeline.transforms.streamschemamerge;
public class TestFailedException extends Exception {
private static final long serialVersionUID = 8585395841938180974L;
TestFailedException(String message) {
super(message);
}
}
|
apache/hop | 1,119 | rap/src/main/java/org/apache/hop/ui/core/gui/GuiResourceImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.ui.core.gui;
import org.apache.hop.ui.hopgui.ISingletonProvider;
import org.eclipse.rap.rwt.SingletonUtil;
public class GuiResourceImpl implements ISingletonProvider {
@Override
public Object getInstanceInternal() {
return SingletonUtil.getSessionInstance(GuiResource.class);
}
}
|
apache/hudi | 1,075 | hudi-flink-datasource/hudi-flink1.17.x/src/main/java/org/apache/hudi/adapter/KeyedProcessFunctionAdapter.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.hudi.adapter;
import org.apache.flink.streaming.api.functions.KeyedProcessFunction;
/**
* Adapter clazz for {@link KeyedProcessFunction}.
*/
public abstract class KeyedProcessFunctionAdapter<K, I, O> extends KeyedProcessFunction<K, I, O> {
}
|
apache/hudi | 1,075 | hudi-flink-datasource/hudi-flink1.18.x/src/main/java/org/apache/hudi/adapter/KeyedProcessFunctionAdapter.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.hudi.adapter;
import org.apache.flink.streaming.api.functions.KeyedProcessFunction;
/**
* Adapter clazz for {@link KeyedProcessFunction}.
*/
public abstract class KeyedProcessFunctionAdapter<K, I, O> extends KeyedProcessFunction<K, I, O> {
}
|
apache/hudi | 1,075 | hudi-flink-datasource/hudi-flink1.19.x/src/main/java/org/apache/hudi/adapter/KeyedProcessFunctionAdapter.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.hudi.adapter;
import org.apache.flink.streaming.api.functions.KeyedProcessFunction;
/**
* Adapter clazz for {@link KeyedProcessFunction}.
*/
public abstract class KeyedProcessFunctionAdapter<K, I, O> extends KeyedProcessFunction<K, I, O> {
}
|
apache/hudi | 1,075 | hudi-flink-datasource/hudi-flink1.20.x/src/main/java/org/apache/hudi/adapter/KeyedProcessFunctionAdapter.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.hudi.adapter;
import org.apache.flink.streaming.api.functions.KeyedProcessFunction;
/**
* Adapter clazz for {@link KeyedProcessFunction}.
*/
public abstract class KeyedProcessFunctionAdapter<K, I, O> extends KeyedProcessFunction<K, I, O> {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.