repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/harmony | 1,098 | classlib/modules/awt/src/main/java/common/org/apache/harmony/awt/state/TextComponentState.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Dmitry A. Durnev
*/
package org.apache.harmony.awt.state;
import java.awt.Insets;
import java.awt.Rectangle;
/**
* State of the text component
*/
public interface TextComponentState extends TextState {
Rectangle getClient();
Insets getInsets();
}
|
apache/harmony | 1,112 | classlib/modules/swing/src/main/java/common/javax/swing/event/CaretEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Evgeniya G. Maenkova
*/
package javax.swing.event;
import java.util.EventObject;
public abstract class CaretEvent extends EventObject {
public CaretEvent(final Object obj) {
super(obj);
}
public abstract int getMark();
public abstract int getDot();
}
|
apache/harmony | 1,115 | classlib/modules/rmi/src/main/java/java/rmi/activation/ActivationInstantiator.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.activation;
import java.rmi.MarshalledObject;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface ActivationInstantiator extends Remote {
MarshalledObject newInstance(ActivationID id, ActivationDesc desc)
throws ActivationException, RemoteException;
}
|
apache/hertzbeat | 1,072 | template-marketplace/hertzbeat-template-hub/src/main/java/org/apache/hertzbeat/templatehub/service/impl/TagServiceImpl.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.service.impl;
import org.apache.hertzbeat.templatehub.service.TagService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class TagServiceImpl implements TagService {
}
|
apache/hudi | 1,114 | hudi-common/src/main/java/org/apache/hudi/common/function/SerializableConsumer.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.common.function;
import java.io.Serializable;
/**
* A wrapped {@link java.util.function.Consumer} which can be serialized.
*
* @param <I> input type
*/
@FunctionalInterface
public interface SerializableConsumer<I> extends Serializable {
void accept(I t) throws Exception;
}
|
apache/ignite-3 | 1,096 | modules/metastorage/src/main/java/org/apache/ignite/internal/metastorage/server/CompactionListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.metastorage.server;
/** Listener of the metastorage compaction. */
@FunctionalInterface
public interface CompactionListener {
/** Callback on completion of metastore compaction locally. */
void onCompactionCompleteLocally(long compactionRevision);
}
|
apache/ignite-extensions | 1,093 | modules/ml-ext/ml/src/main/java/org/apache/ignite/ml/math/functions/IgniteBinaryOperator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.ml.math.functions;
import java.io.Serializable;
import java.util.function.BinaryOperator;
/**
* Serializable binary operator.
*
* @see java.util.function.BinaryOperator
*/
public interface IgniteBinaryOperator<A> extends BinaryOperator<A>, Serializable {
}
|
apache/incubator-atlas | 1,126 | server-api/src/main/java/org/apache/atlas/setup/SetupStep.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.atlas.setup;
/**
* Represents a step that initializes some dependency of Atlas.
*
* Implementations of this should be ideally written in an idempotent way.
* In particular, if already setup, they should result in a Noop.
*/
public interface SetupStep {
void run() throws SetupException;
}
|
apache/incubator-brooklyn | 1,074 | brooklyn-server/test-support/src/main/java/org/apache/brooklyn/test/performance/MeasurementResultPersister.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.brooklyn.test.performance;
import java.util.Date;
import com.google.common.annotations.Beta;
@Beta
public interface MeasurementResultPersister {
void persist(Date time, PerformanceTestDescriptor options, PerformanceTestResult result);
}
|
apache/incubator-kie-drools | 1,092 | kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/BusinessKnowledgeModelNode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.dmn.api.core.ast;
import org.kie.dmn.api.core.DMNType;
import org.kie.dmn.model.api.BusinessKnowledgeModel;
public interface BusinessKnowledgeModelNode extends DMNNode {
DMNType getResultType();
BusinessKnowledgeModel getBusinessKnowledModel();
}
|
apache/incubator-kie-drools | 1,117 | drools-base/src/main/java/org/drools/base/base/FieldAccessor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.drools.base.base;
import org.drools.base.rule.accessor.ReadAccessor;
import org.drools.base.rule.accessor.WriteAccessor;
/**
* An interface for Accessor classes that joins both reader and writer accessor methods
*/
public interface FieldAccessor extends ReadAccessor, WriteAccessor {
}
|
apache/incubator-kie-kogito-apps | 1,068 | data-audit/data-audit-quarkus-service/src/main/java/org/kie/kogito/app/audit/quarkus/QuarkusDataAuditMain.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.kogito.app.audit.quarkus;
import io.quarkus.runtime.Quarkus;
import io.quarkus.runtime.annotations.QuarkusMain;
@QuarkusMain
public class QuarkusDataAuditMain {
public static void main(String... args) {
Quarkus.run(args);
}
} |
apache/incubator-kie-kogito-runtimes | 1,053 | quarkus/addons/jbpm-usertask-storage-jpa/runtime/src/test/java/org/jbpm/usertask/jpa/quarkus/H2QuarkusTestProfile.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.jbpm.usertask.jpa.quarkus;
import io.quarkus.test.junit.QuarkusTestProfile;
public class H2QuarkusTestProfile implements QuarkusTestProfile {
@Override
public String getConfigProfile() {
return "test-h2";
}
}
|
apache/incubator-retired-wave | 1,093 | wave/src/main/java/org/waveprotocol/wave/model/document/operation/ModifiableDocument.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.waveprotocol.wave.model.document.operation;
import org.waveprotocol.wave.model.operation.OperationException;
/**
* A document that can accept operations to mutate its state.
*/
public interface ModifiableDocument {
void consume(DocOp m) throws OperationException;
}
|
apache/inlong | 1,095 | inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/conversion/GBToMB.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.inlong.manager.common.conversion;
import org.springframework.stereotype.Component;
/**
* Convert GB to MB.
*/
@Component
public class GBToMB implements ConversionStrategy {
@Override
public Integer unitConversion(Integer value) {
return value << 10;
}
}
|
apache/iotdb-extras | 1,083 | iotdb-collector/collector-core/src/main/java/org/apache/iotdb/collector/runtime/task/TaskStateEnum.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.iotdb.collector.runtime.task;
public enum TaskStateEnum {
RUNNING(0),
STOPPED(1);
private final int taskState;
TaskStateEnum(final int taskState) {
this.taskState = taskState;
}
public int getTaskState() {
return taskState;
}
}
|
apache/iotdb-web-workbench | 1,110 | backend/src/main/java/org/apache/iotdb/admin/model/vo/SqlResultVO.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.iotdb.admin.model.vo;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class SqlResultVO implements Serializable {
private List<String> metaDataList;
private List<List<String>> valueList;
private String queryTime;
private Long line;
}
|
apache/iotdb | 1,098 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/ILastFlushTime.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.iotdb.db.storageengine.dataregion;
import org.apache.tsfile.file.metadata.IDeviceID;
public interface ILastFlushTime {
long getLastFlushTime(IDeviceID device);
void updateLastFlushTime(IDeviceID device, long time);
ILastFlushTime degradeLastFlushTime();
}
|
apache/iotdb | 1,101 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/exception/BadNodeUrlFormatException.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.iotdb.db.exception;
public class BadNodeUrlFormatException extends Exception {
public BadNodeUrlFormatException(String nodeUrl) {
super(
String.format(
"Node url %s has bad format, which should be " + "{IP/DomainName}:{Port}", nodeUrl));
}
}
|
apache/jena | 1,125 | jena-base/src/main/java/org/apache/jena/atlas/lib/tuple/TFunction4.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jena.atlas.lib.tuple;
/**
* A four-argument function in which all arguments are of the same type.
*
* @param <X> the type of all arguments
* @param <Z> the type of the result of the operation
*/
@FunctionalInterface
public interface TFunction4<X, Z> {
Z apply(X x1, X x2, X x3, X x4);
}
|
apache/jmeter | 1,116 | src/core/src/main/java/org/apache/jmeter/engine/event/LoopIterationListener.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.jmeter.engine.event;
/**
* Allows a class to receive loop iteration start events.
*/
public interface LoopIterationListener {
/**
* Called when a loop iteration is about to start.
*
* @param iterEvent the event
*/
void iterationStart(LoopIterationEvent iterEvent);
}
|
apache/jmeter | 1,130 | src/core/src/main/java/org/apache/jmeter/visualizers/Printable.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.jmeter.visualizers;
import javax.swing.JComponent;
/**
* Printable is used by components that can be saved to an external file. It is
* up to the visualizers to get the right component containing the JPanel or
* JComponent to save.
*/
public interface Printable {
JComponent getPrintableComponent();
}
|
apache/juneau | 1,114 | juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/converter/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.
*
***************************************************************************************************************************/
/**
* REST Response Converters
*/
package org.apache.juneau.rest.converter; |
apache/juneau | 1,114 | juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/processor/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.
*
***************************************************************************************************************************/
/**
* HTTP Response Processors
*/
package org.apache.juneau.rest.processor; |
apache/kafka | 1,115 | clients/src/main/java/org/apache/kafka/common/errors/ElectionNotNeededException.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.kafka.common.errors;
public class ElectionNotNeededException extends InvalidMetadataException {
public ElectionNotNeededException(String message) {
super(message);
}
public ElectionNotNeededException(String message, Throwable cause) {
super(message, cause);
}
}
|
apache/kylin | 1,114 | src/core-common/src/main/java/org/apache/kylin/common/event/ModelDropEvent.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.kylin.common.event;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Setter
@Getter
@AllArgsConstructor
@ToString
public class ModelDropEvent {
private String project;
private String modelId;
private String modelName;
}
|
apache/logging-log4j2 | 1,100 | log4j-core-test/src/test/java/org/apache/logging/log4j/core/jackson/LevelMixInJsonTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.logging.log4j.core.jackson;
import com.fasterxml.jackson.databind.ObjectMapper;
public class LevelMixInJsonTest extends LevelMixInTest {
@Override
protected ObjectMapper newObjectMapper() {
return new Log4jJsonObjectMapper(false, true, false, false);
}
}
|
apache/lucene | 1,097 | lucene/core/src/test/org/apache/lucene/codecs/lucene90/TestLucene90StoredFieldsFormatMergeInstance.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.lucene.codecs.lucene90;
/** Test the merge instance of the Lucene90 stored fields format. */
public class TestLucene90StoredFieldsFormatMergeInstance extends TestLucene90StoredFieldsFormat {
@Override
protected boolean shouldTestMergeInstance() {
return true;
}
}
|
apache/maven-compiler-plugin | 1,097 | src/it/multirelease-patterns/singleproject-modular/src/main/java17/mr/A.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package mr;
import java.util.Optional;
import base.Base;
public class A implements I {
public static String getString() {
return Base.get() + " -> " + Optional.of("17").get();
}
@Override
public Class<?> introducedClass() {
return Module.class;
}
}
|
apache/maven-plugins | 1,095 | maven-rar-plugin/src/test/java/org/apache/maven/plugins/rar/stubs/RarMavenProjectStub2.java | package org.apache.maven.plugins.rar.stubs;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.io.File;
public class RarMavenProjectStub2
extends RarMavenProjectStub
{
public File getFile()
{
return new File( getBasedir(), "src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml" );
}
}
|
apache/maven-scm | 1,047 | maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svn-commons/src/main/java/org/apache/maven/scm/provider/svn/command/SvnCommand.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.maven.scm.provider.svn.command;
import org.apache.maven.scm.command.Command;
/**
* @author <a href="mailto:trygvis@inamo.no">Trygve Laugstøl</a>
*/
public interface SvnCommand extends Command {
// no-op
}
|
apache/maven-surefire | 1,104 | surefire-its/src/test/java/org/apache/maven/surefire/its/ForkCountTestNGIT.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.maven.surefire.its;
/**
* Test forkCount and reuseForks
*
* @author <a href="mailto:velo.br@gmail.com">Marvin Froeder</a>
*/
public class ForkCountTestNGIT extends ForkCountIT {
@Override
protected String getProject() {
return "fork-count-testng";
}
}
|
apache/maven | 1,109 | api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectScopeRegistry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.maven.api.services;
import org.apache.maven.api.ProjectScope;
import org.apache.maven.api.annotations.Experimental;
/**
* Manager for {@link ProjectScope}.
*
* @since 4.0.0
*/
@Experimental
public interface ProjectScopeRegistry extends ExtensibleEnumRegistry<ProjectScope> {}
|
apache/metamodel | 1,106 | core/src/main/java/org/apache/metamodel/query/builder/SatisfiedOrderByBuilder.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.metamodel.query.builder;
import org.apache.metamodel.schema.Column;
public interface SatisfiedOrderByBuilder<B extends SatisfiedQueryBuilder<?>>
extends SatisfiedQueryBuilder<B> {
public B asc();
public B desc();
public SatisfiedOrderByBuilder<B> and(Column column);
} |
apache/metron | 1,098 | metron-platform/metron-pcap/src/main/java/org/apache/metron/pcap/filter/PcapFilterConfigurator.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.metron.pcap.filter;
import org.apache.hadoop.conf.Configuration;
public interface PcapFilterConfigurator<T> {
public static final String PCAP_FILTER_NAME_CONF = "PCAP_FILTER_NAME";
void addToConfig(T fields, Configuration conf);
String queryToString(T fields);
}
|
apache/nifi | 1,054 | nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/merge/AttributeStrategy.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.nifi.processors.standard.merge;
import java.util.List;
import java.util.Map;
import org.apache.nifi.flowfile.FlowFile;
public interface AttributeStrategy {
Map<String, String> getMergedAttributes(List<FlowFile> flowFiles);
}
|
apache/nifi | 1,077 | nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/manager/FunnelEntityMerger.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.nifi.cluster.manager;
import org.apache.nifi.web.api.entity.FunnelEntity;
public class FunnelEntityMerger implements ComponentEntityMerger<FunnelEntity> {
// No specific merging needs to be done beyond what the ComponentEntityMerger does by default
} |
apache/nifi | 1,103 | nifi-commons/nifi-security-ssl/src/main/java/org/apache/nifi/security/ssl/KeyStoreBuilder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.nifi.security.ssl;
import java.security.KeyStore;
/**
* Builder interface for instances of java.security.KeyStore
*/
public interface KeyStoreBuilder {
/**
* Build Key Store based on configured properties
*
* @return Key Store
*/
KeyStore build();
}
|
apache/oodt | 1,106 | resource/src/main/java/org/apache/oodt/cas/resource/queuerepo/QueueRepository.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.oodt.cas.resource.queuerepo;
//OODT imports
import org.apache.oodt.cas.resource.scheduler.QueueManager;
/**
*
* @author bfoster
* @version $Revision$
*
* <p>
* The Queue Repository interface.
* </p>
*/
public interface QueueRepository {
QueueManager loadQueues();
}
|
apache/oodt | 1,117 | commons/src/main/java/org/apache/oodt/commons/activity/NullActivity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.oodt.commons.activity;
/**
* A null activity doesn't record any incidents.
*
* @author Kelly
* @version $Revision: 1.1 $
*/
public class NullActivity extends Activity {
/**
* Ignore the incident.
*
* @param incident Ignored.
*/
public void recordIncident(Incident incident) {}
}
|
apache/openjpa | 1,093 | openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/MultiB.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.openjpa.persistence.jdbc.common.apps;
public class MultiB
extends MultiA {
private String bString;
private int bInt;
public void setBString(String val) {
bString = val;
}
public String getBString() {
return bString;
}
}
|
apache/openwebbeans | 1,095 | webbeans-impl/src/test/java/org/apache/webbeans/test/tests/PackageInjectionPointOwner.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.webbeans.test.tests;
import jakarta.inject.Inject;
/**
* Package private injection point owner
*/
class PackageInjectionPointOwner
{
@Inject
private PackageMethodInjectionPointOwner pimp;
public String getName()
{
return pimp.getName();
}
}
|
apache/ozone | 1,110 | hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/DBStoreHAManager.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.hdds.utils;
import org.apache.hadoop.hdds.utils.db.Table;
/**
* Interface defined for getting HA related specific info from DB for SCM and
* OM.
*/
public interface DBStoreHAManager {
default Table<String, TransactionInfo> getTransactionInfoTable() {
return null;
}
}
|
apache/paimon-webui | 1,107 | paimon-web-server/src/main/java/org/apache/paimon/web/server/mapper/TenantMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.paimon.web.server.mapper;
import org.apache.paimon.web.server.data.model.Tenant;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/** tenant table mapper. */
@Mapper
public interface TenantMapper extends BaseMapper<Tenant> {}
|
apache/pinot | 1,134 | pinot-spi/src/main/java/org/apache/pinot/spi/trace/Scope.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.pinot.spi.trace;
/**
* Models the lifecycle of a span of synchronous work, analogous to the Scope concept in tracing libraries.
* Must be created and closed on the same thread.
*/
public interface Scope extends AutoCloseable {
@Override
void close();
default void close(Object context) {
}
}
|
apache/polaris | 1,109 | runtime/service/src/test/java/org/apache/polaris/service/test/TestEnvironmentResolver.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.polaris.service.test;
import org.junit.jupiter.api.extension.ExtensionContext;
/** Interface for determining the test environment that tests should run in */
public interface TestEnvironmentResolver {
TestEnvironment resolveTestEnvironment(ExtensionContext extensionContext);
}
|
apache/polygene-java | 1,075 | extensions/entitystore-hazelcast/src/main/java/org/apache/polygene/entitystore/hazelcast/HazelcastAccessors.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
package org.apache.polygene.entitystore.hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
public interface HazelcastAccessors
{
HazelcastInstance hazelcastInstanceUsed();
IMap hazelcastMapUsed();
}
|
apache/polygene-java | 1,102 | extensions/indexing-solr/src/main/java/org/apache/polygene/index/solr/SolrSearch.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
package org.apache.polygene.index.solr;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.common.SolrDocumentList;
/**
* JAVADOC
*/
public interface SolrSearch
{
SolrDocumentList search( String queryString ) throws SolrServerException;
}
|
apache/polygene-java | 1,105 | core/spi/src/main/java/org/apache/polygene/spi/entitystore/helpers/StateStore.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
package org.apache.polygene.spi.entitystore.helpers;
import javax.json.JsonObject;
import org.apache.polygene.spi.entitystore.EntityStoreException;
/**
* StateStore SPI.
*/
public interface StateStore
{
JsonObject jsonStateOf( String id ) throws EntityStoreException;
}
|
apache/polygene-java | 1,106 | libraries/locking/src/main/java/org/apache/polygene/library/locking/ReadLock.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
package org.apache.polygene.library.locking;
import java.lang.annotation.*;
/**
* Mark methods which should cause a read-lock with this annotation.
*/
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.METHOD } )
@Documented
@Inherited
public @interface ReadLock
{
} |
apache/pulsar | 1,089 | pulsar-io/elastic-search/src/test/java/org/apache/pulsar/io/elasticsearch/v7/ElasticSearch7ClientSslTest.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.pulsar.io.elasticsearch.v7;
import org.apache.pulsar.io.elasticsearch.ElasticSearchClientSslTest;
public class ElasticSearch7ClientSslTest extends ElasticSearchClientSslTest {
public ElasticSearch7ClientSslTest() {
super(ELASTICSEARCH_7);
}
}
|
apache/pulsar | 1,089 | pulsar-io/elastic-search/src/test/java/org/apache/pulsar/io/elasticsearch/v8/ElasticSearch8ClientSslTest.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.pulsar.io.elasticsearch.v8;
import org.apache.pulsar.io.elasticsearch.ElasticSearchClientSslTest;
public class ElasticSearch8ClientSslTest extends ElasticSearchClientSslTest {
public ElasticSearch8ClientSslTest() {
super(ELASTICSEARCH_8);
}
}
|
apache/ratis | 1,126 | ratis-common/src/main/java/org/apache/ratis/io/StandardWriteOption.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ratis.io;
public enum StandardWriteOption implements WriteOption {
/**
* Sync the data to the underlying storage.
* Note that SYNC does not imply {@link #FLUSH}.
*/
SYNC,
/** Close the data to the underlying storage. */
CLOSE,
/** Flush the data out from the buffer. */
FLUSH,
}
|
apache/reef | 1,091 | lang/java/reef-io/src/main/java/org/apache/reef/io/network/naming/parameters/NameResolverNameServerAddr.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.reef.io.network.naming.parameters;
import org.apache.reef.tang.annotations.Name;
import org.apache.reef.tang.annotations.NamedParameter;
@NamedParameter(doc = "An address of NameServer")
public final class NameResolverNameServerAddr implements Name<String> {
}
|
apache/rocketmq-eventbridge | 1,090 | common/src/test/java/org/apache/rocketmq/eventbridge/tools/transform/JsonPathUtilTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.rocketmq.eventbridge.tools.transform;
import org.junit.Assert;
import org.junit.Test;
public class JsonPathUtilTest {
@Test
public void removeDataOfJsonPath() {
Assert.assertEquals("$.body", JsonPathUtil.removeDataOfJsonPath("$.data.body"));
}
} |
apache/royale-compiler | 1,094 | flex-compiler-oem/src/main/java/flex2/compiler/config/AdvancedConfigurationInfo.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 flex2.compiler.config;
/**
* A convenient ConfigurationInfo extension which returns true from
* isAdvanced().
*
* @author Roger Gonzalez
*/
public class AdvancedConfigurationInfo extends ConfigurationInfo
{
public boolean isAdvanced()
{
return true;
}
}
|
apache/samza | 1,109 | samza-core/src/main/java/org/apache/samza/coordinator/communication/JobInfoProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.coordinator.communication;
import java.util.Optional;
/**
* Used by implementors of {@link CoordinatorCommunication} to access job information for coordinator-to-worker
* communication.
*/
public interface JobInfoProvider {
Optional<byte[]> getSerializedJobModel();
}
|
apache/seatunnel-web | 1,073 | seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/domain/response/script/ScriptSimpleInfoRes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.app.domain.response.script;
import io.swagger.annotations.ApiModel;
import lombok.Data;
@ApiModel(value = "scriptSimpleInfoRes", description = "script simple information")
@Data
public class ScriptSimpleInfoRes extends BaseScriptInfoRes {}
|
apache/seatunnel | 1,053 | seatunnel-connectors-v2/connector-easysearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/easysearch/dto/source/ScrollResult.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.connectors.seatunnel.easysearch.dto.source;
import lombok.Data;
import java.util.List;
import java.util.Map;
@Data
public class ScrollResult {
private String scrollId;
private List<Map<String, Object>> docs;
}
|
apache/seatunnel | 1,060 | seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/resourcemanager/NoEnoughResourceException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seatunnel.engine.server.resourcemanager;
public class NoEnoughResourceException extends RuntimeException {
public NoEnoughResourceException() {}
public NoEnoughResourceException(String message) {
super(message);
}
}
|
apache/sentry | 1,127 | sentry-spi/src/main/java/org/apache/sentry/spi/Provider.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.sentry.spi;
/**
* The main Provider interface.
*
* This was borrowed from and inspired by the Keycloak SPI implmentation
* http://www.keycloak.org
* original Author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
*/
public interface Provider {
default void close() {
}
}
|
apache/shardingsphere | 1,085 | test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/dialect/doris/DorisBinderIT.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.test.it.sql.binder.dialect.doris;
import org.apache.shardingsphere.test.it.sql.binder.SQLBinderIT;
import org.apache.shardingsphere.test.it.sql.binder.SQLBinderITSettings;
@SQLBinderITSettings("Doris")
class DorisBinderIT extends SQLBinderIT {
}
|
apache/sis | 1,098 | endorsed/src/org.apache.sis.feature/main/org/apache/sis/pending/geoapi/filter/LogicalOperatorName.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.pending.geoapi.filter;
/**
* Placeholder for GeoAPI 3.1 interfaces (not yet released).
* Shall not be visible in public API, as it will be deleted after next GeoAPI release.
*/
@SuppressWarnings("doclint:missing")
public enum LogicalOperatorName {
AND, OR, NOT;
}
|
apache/sis | 1,102 | endorsed/src/org.apache.sis.storage.sql/main/org/apache/sis/storage/sql/feature/Resources_en.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.sis.storage.sql.feature;
/**
* Resource in English language.
*/
public class Resources_en extends Resources {
/**
* Constructs a new resource bundle loading data from
* the resource file of the same name as this class.
*/
public Resources_en() {
}
}
|
apache/solr | 1,134 | solr/core/src/java/org/apache/solr/search/SolrSearcherRequirer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.solr.search;
import org.apache.lucene.search.IndexSearcher;
/**
* Marker interface indicating that the tagged class assumes access to {@link SolrIndexSearcher}
* functionality and cannot be used by a vanilla Lucene {@link IndexSearcher}
*
* @lucene.experimental
*/
public interface SolrSearcherRequirer {}
|
apache/sqoop | 1,136 | src/java/org/apache/sqoop/validation/ValidationThreshold.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.sqoop.validation;
/**
* This is the primary interface that is responsible for driving the actual
* decision on validation based on an optional error margin threshold.
*/
public interface ValidationThreshold {
void setThresholdValue(long value);
boolean compare(Comparable left, Comparable right);
}
|
apache/stratos | 1,096 | dependencies/org.wso2.carbon.ui/src/main/java/org/wso2/carbon/ui/action/ComponentAction.java | /*
* Copyright 2004,2005 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.wso2.carbon.ui.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import static org.wso2.carbon.ui.action.ActionHelper.render;
/**
*
*/
public class ComponentAction {
public ComponentAction() {
}
public void execute(HttpServletRequest request, HttpServletResponse response) throws Exception {
String actionUrl = ""; //TODO fix this
render(actionUrl, request, response);
}
}
|
apache/syncope | 1,084 | core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/OIDCRPClientAppRepoExt.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.syncope.core.persistence.neo4j.dao.repo;
import org.apache.syncope.core.persistence.api.entity.am.OIDCRPClientApp;
public interface OIDCRPClientAppRepoExt extends ClientAppRepoExt<OIDCRPClientApp> {
OIDCRPClientApp save(OIDCRPClientApp clientApp);
}
|
apache/syncope | 1,087 | core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/SAML2SPClientAppRepoExt.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.syncope.core.persistence.jpa.dao.repo;
import org.apache.syncope.core.persistence.api.entity.am.SAML2SPClientApp;
public interface SAML2SPClientAppRepoExt extends ClientAppRepoExt<SAML2SPClientApp> {
SAML2SPClientApp save(SAML2SPClientApp clientApp);
}
|
apache/syncope | 1,095 | core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/AuditDataBinder.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.syncope.core.provisioning.api.data;
import org.apache.syncope.common.lib.to.AuditConfTO;
import org.apache.syncope.core.persistence.api.entity.AuditConf;
@FunctionalInterface
public interface AuditDataBinder {
AuditConfTO getAuditConfTO(AuditConf auditConf);
}
|
apache/syncope | 1,102 | client/idrepo/console/src/main/java/org/apache/syncope/client/console/widgets/BaseWidget.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.syncope.client.console.widgets;
import org.apache.wicket.markup.html.panel.Panel;
public abstract class BaseWidget extends Panel {
private static final long serialVersionUID = -4186604985011430091L;
public BaseWidget(final String id) {
super(id);
}
}
|
apache/tajo | 1,128 | tajo-plan/src/main/java/org/apache/tajo/plan/logical/UnionNode.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.tajo.plan.logical;
import org.apache.tajo.plan.PlanString;
public class UnionNode extends SetOperationNode {
public UnionNode(int pid) {
super(pid, NodeType.UNION);
}
@Override
public PlanString getPlanString() {
PlanString planStr = new PlanString(this);
return planStr;
}
}
|
apache/tapestry-5 | 1,107 | tapestry-core/src/main/java/org/apache/tapestry5/annotations/DisableStrictChecks.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.annotations;
import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Disables strict checks Tapestry-IoC or Tapestry may perform on methods. So far, this annotation
* can be used in Tapestry event handler methods to disable the check on whether they match
* a component id which actually exists.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(METHOD)
public @interface DisableStrictChecks
{
}
|
apache/tapestry-5 | 1,107 | tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/IdMatcherImpl.java | // Copyright 2006, 2007 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.internal;
import org.apache.tapestry5.ioc.IdMatcher;
/**
* A wrapper around a {@link GlobPatternMatcher} used to glob-match service ids.
*/
public class IdMatcherImpl implements IdMatcher
{
private final GlobPatternMatcher globMatcher;
public IdMatcherImpl(String pattern)
{
globMatcher = new GlobPatternMatcher(pattern);
}
@Override
public boolean matches(String id)
{
return globMatcher.matches(id);
}
}
|
apache/tapestry-5 | 1,108 | tapestry-jpa/src/main/java/org/apache/tapestry5/jpa/JpaPersistenceConstants.java | // Copyright 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.jpa;
import org.apache.tapestry5.PersistenceConstants;
/**
* Constants for persistent field strategies.
*
* @since 5.3
*/
public class JpaPersistenceConstants
{
/**
* If the field's value is a persistent JPA entity, its type and primary key is stored in the
* {@link org.apache.tapestry5.http.services.Session}. Otherwise,
* the value is stored as per {@link PersistenceConstants#SESSION}.
*/
public static final String ENTITY = "entity";
}
|
apache/tika | 1,103 | tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/writer/TikaServerWriter.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.server.core.writer;
import jakarta.ws.rs.ext.MessageBodyWriter;
/**
* Stub interface to allow for SPI loading from other modules
* without opening up service loading to any generic MessageBodyWriter
*/
public interface TikaServerWriter<T> extends MessageBodyWriter<T> {
}
|
apache/tomcat-jakartaee-migration | 1,112 | src/test/java/org/apache/tomcat/jakartaee/UtilTest.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.tomcat.jakartaee;
import org.junit.Test;
import static org.junit.Assert.*;
public class UtilTest {
@Test
public void testGetExtension() {
assertEquals("java", Util.getExtension("HelloServlet.java"));
assertEquals("", Util.getExtension("HelloServlet"));
}
}
|
apache/tomee | 1,108 | container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/ComplexSubclass.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.core.cmp.jpa;
import jakarta.persistence.Entity;
@Entity
public class ComplexSubclass extends ComplexSuperclass {
public ComplexSubclass() {
}
public ComplexSubclass(final String firstId, final String secondId) {
super(firstId, secondId);
}
}
|
apache/tomee | 1,113 | container/openejb-core/src/main/java/org/openejb/client/LocalInitialContextFactory.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.openejb.client;
/**
* @version $Revision: 1222119 $ $Date: 2011-12-22 10:23:14 +0100 (jeu. 22 déc. 2011) $
* @deprecated use org.apache.openejb.core.LocalInitialContextFactory
*/
@Deprecated
public class LocalInitialContextFactory extends org.apache.openejb.core.LocalInitialContextFactory {
}
|
apache/tomee | 1,113 | examples/schedule-methods-meta/src/main/java/org/superbiz/corn/meta/api/Metatype.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.superbiz.corn.meta.api;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Metatype
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Metatype {
}
|
apache/tomee | 1,118 | container/openejb-junit/src/main/java/org/apache/openejb/junit/TestResource.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.junit;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface TestResource {
String value();
}
|
apache/xmlbeans | 1,119 | src/main/java/org/apache/xmlbeans/impl/regex/ParseException.java | /* Copyright 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.
*/
package org.apache.xmlbeans.impl.regex;
public class ParseException extends RuntimeException {
int location;
/*
public ParseException(String mes) {
this(mes, -1);
}
*/
/**
*
*/
public ParseException(String mes, int location) {
super(mes);
this.location = location;
}
/**
*
* @return -1 if location information is not available.
*/
public int getLocation() {
return this.location;
}
}
|
apache/xmlbeans | 1,125 | src/main/java/org/apache/xmlbeans/SchemaStringEnumEntry.java | /* Copyright 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.
*/
package org.apache.xmlbeans;
/**
* Describes a code-generated string enumeration
*
* @see SchemaType#getStringEnumEntries
*/
public interface SchemaStringEnumEntry
{
/**
* The enumerated string value
*/
public String getString();
/**
* An integer to represent this choice in the enumeration
*/
public int getIntValue();
/**
* A capitalized name to use for the enumeration constant name
*/
public String getEnumName();
}
|
apache/xmlgraphics-fop | 1,113 | fop-core/src/main/java/org/apache/fop/svg/font/FOPFontFamilyResolver.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
package org.apache.fop.svg.font;
import org.apache.batik.bridge.FontFamilyResolver;
public interface FOPFontFamilyResolver extends FontFamilyResolver {
FOPGVTFontFamily resolve(String familyName);
FOPGVTFontFamily getDefault();
FOPGVTFontFamily getFamilyThatCanDisplay(char c);
}
|
apache/zeppelin | 1,115 | zeppelin-zengine/src/test/java/org/apache/zeppelin/display/AngularObjectBuilder.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.zeppelin.display;
public class AngularObjectBuilder {
public static <T> AngularObject<T> build(String varName, T value, String noteId,
String paragraphId) {
return new AngularObject<>(varName, value, noteId, paragraphId, null);
}
} |
google/binnavi | 1,073 | src/test/java/com/google/security/zynamics/binnavi/Debug/Connection/Packets/Arguments/CDebugMessageRawArgumentTest.java | /*
Copyright 2014 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.security.zynamics.binnavi.Debug.Connection.Packets.Arguments;
import com.google.security.zynamics.binnavi.debug.connection.packets.arguments.DebugMessageRawArgument;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class CDebugMessageRawArgumentTest {
@Test
public void testConstructor() {
try {
new DebugMessageRawArgument(null);
} catch (final NullPointerException e) {
}
}
}
|
google/gson | 1,129 | gson/src/main/java/com/google/gson/internal/NumberLimits.java | package com.google.gson.internal;
import java.math.BigDecimal;
import java.math.BigInteger;
/**
* This class enforces limits on numbers parsed from JSON to avoid potential performance problems
* when extremely large numbers are used.
*/
public class NumberLimits {
private NumberLimits() {}
private static final int MAX_NUMBER_STRING_LENGTH = 10_000;
private static void checkNumberStringLength(String s) {
if (s.length() > MAX_NUMBER_STRING_LENGTH) {
throw new NumberFormatException("Number string too large: " + s.substring(0, 30) + "...");
}
}
public static BigDecimal parseBigDecimal(String s) throws NumberFormatException {
checkNumberStringLength(s);
BigDecimal decimal = new BigDecimal(s);
// Cast to long to avoid issues with abs when value is Integer.MIN_VALUE
if (Math.abs((long) decimal.scale()) >= 10_000) {
throw new NumberFormatException("Number has unsupported scale: " + s);
}
return decimal;
}
public static BigInteger parseBigInteger(String s) throws NumberFormatException {
checkNumberStringLength(s);
return new BigInteger(s);
}
}
|
google/guice | 1,124 | core/src/com/google/inject/binder/AnnotatedConstantBindingBuilder.java | /*
* Copyright (C) 2006 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.inject.binder;
import java.lang.annotation.Annotation;
/**
* See the EDSL examples at {@link com.google.inject.Binder}.
*
* @author crazybob@google.com (Bob Lee)
*/
public interface AnnotatedConstantBindingBuilder {
/** See the EDSL examples at {@link com.google.inject.Binder}. */
ConstantBindingBuilder annotatedWith(Class<? extends Annotation> annotationType);
/** See the EDSL examples at {@link com.google.inject.Binder}. */
ConstantBindingBuilder annotatedWith(Annotation annotation);
}
|
google/j2cl | 1,125 | jre/javatests/com/google/j2cl/jre/java/util/ArraysFloatSemanticsTest.java | /*
* Copyright 2019 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.jre.java.util;
import java.util.Arrays;
/** Tests {@link Arrays} Float semantics. */
public class ArraysFloatSemanticsTest extends EmulTestBase {
public void testEquals() throws Exception {
assertFalse(Arrays.equals(new Float[] {-0.0f}, new Float[] {0.0f}));
assertTrue(Arrays.equals(new Float[] {Float.NaN}, new Float[] {Float.NaN}));
assertFalse(Arrays.equals(new float[] {-0.0f}, new float[] {0.0f}));
assertTrue(Arrays.equals(new float[] {Float.NaN}, new float[] {Float.NaN}));
}
}
|
google/j2cl | 1,148 | jre/javatests/com/google/j2cl/jre/JsSuite.java | /*
* Copyright 2022 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.jre;
import com.google.j2cl.jre.java.lang.JsExceptionTest;
import com.google.j2cl.jre.java.lang.JsStringTest;
import com.google.j2cl.jre.java.lang.JsThrowableTest;
import com.google.j2cl.jre.java.util.JsCollectionTest;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
/** Test JRE emulations only in JS. */
@RunWith(Suite.class)
@SuiteClasses({
JsExceptionTest.class,
JsThrowableTest.class,
JsStringTest.class,
JsCollectionTest.class,
})
public class JsSuite {}
|
google/j2objc | 1,103 | jre_emul/android/platform/libcore/luni/src/test/java/libcore/java/time/PeriodTest.java | /*
* Copyright (C) 2017 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 libcore.java.time;
import org.junit.Test;
import java.time.Period;
import java.time.chrono.IsoChronology;
import static org.junit.Assert.assertSame;
/**
* Additional tests for {@link Period}.
*
* @see tck.java.time.TCKPeriod
* @see test.java.time.TestPeriod
*/
public class PeriodTest {
@Test
public void test_getChronology() {
// Period always uses the IsoChronology.
assertSame(IsoChronology.INSTANCE, Period.ZERO.getChronology());
}
}
|
googleads/google-ads-java | 1,082 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/LanguageInfoOrBuilder.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 LanguageInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.LanguageInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return Whether the languageConstant field is set.
*/
boolean hasLanguageConstant();
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return The languageConstant.
*/
java.lang.String getLanguageConstant();
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return The bytes for languageConstant.
*/
com.google.protobuf.ByteString
getLanguageConstantBytes();
}
|
googleads/google-ads-java | 1,082 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/LanguageInfoOrBuilder.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 LanguageInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.LanguageInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return Whether the languageConstant field is set.
*/
boolean hasLanguageConstant();
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return The languageConstant.
*/
java.lang.String getLanguageConstant();
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return The bytes for languageConstant.
*/
com.google.protobuf.ByteString
getLanguageConstantBytes();
}
|
googleads/google-ads-java | 1,082 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/LanguageInfoOrBuilder.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 LanguageInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.LanguageInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return Whether the languageConstant field is set.
*/
boolean hasLanguageConstant();
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return The languageConstant.
*/
java.lang.String getLanguageConstant();
/**
* <pre>
* The language constant resource name.
* </pre>
*
* <code>optional string language_constant = 2;</code>
* @return The bytes for languageConstant.
*/
com.google.protobuf.ByteString
getLanguageConstantBytes();
}
|
googleapis/gapic-generator | 1,108 | src/main/java/com/google/api/codegen/viewmodel/PathTemplateView.java | /* Copyright 2016 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* 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.viewmodel;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class PathTemplateView {
public abstract String name();
public abstract String pattern();
public static Builder newBuilder() {
return new AutoValue_PathTemplateView.Builder();
}
@AutoValue.Builder
public abstract static class Builder {
public abstract Builder name(String val);
public abstract Builder pattern(String val);
public abstract PathTemplateView build();
}
}
|
googleapis/google-cloud-java | 1,031 | java-telcoautomation/proto-google-cloud-telcoautomation-v1/src/main/java/com/google/cloud/telcoautomation/v1/DiscardDeploymentChangesResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/telcoautomation/v1/telcoautomation.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.telcoautomation.v1;
public interface DiscardDeploymentChangesResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse)
com.google.protobuf.MessageOrBuilder {}
|
hibernate/hibernate-ogm | 1,051 | performance/src/main/java/org/hibernate/ogm/perftest/model/ResearchPaper.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.perftest.model;
import java.util.Date;
import javax.persistence.Embeddable;
/**
* @author Gunnar Morling
*/
@Embeddable
public class ResearchPaper {
private String title;
private Date published;
private int wordCount;
ResearchPaper() {
}
public ResearchPaper(String title, Date published, int wordCount) {
this.title = title;
this.published = published;
this.wordCount = wordCount;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Date getPublished() {
return published;
}
public void setPublished(Date published) {
this.published = published;
}
public int getWordCount() {
return wordCount;
}
public void setWordCount(int wordCount) {
this.wordCount = wordCount;
}
}
|
hibernate/hibernate-ogm | 1,093 | core/src/test/java/org/hibernate/ogm/utils/EmptyOptionsContext.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.utils;
import java.util.Collections;
import java.util.Map;
import org.hibernate.ogm.options.spi.Option;
import org.hibernate.ogm.options.spi.OptionsContext;
import org.hibernate.ogm.options.spi.UniqueOption;
/**
* An empty {@link OptionsContext} for testing purposes.
*
* @author Gunnar Morling
*/
public class EmptyOptionsContext implements OptionsContext {
public static final OptionsContext INSTANCE = new EmptyOptionsContext();
private EmptyOptionsContext() {
}
@Override
public <I, V, O extends Option<I, V>> V get(Class<O> optionType, I identifier) {
return null;
}
@Override
public <V, O extends UniqueOption<V>> V getUnique(Class<O> optionType) {
return null;
}
@Override
public <I, V, O extends Option<I, V>> Map<I, V> getAll(Class<O> optionType) {
return Collections.emptyMap();
}
}
|
hibernate/hibernate-orm | 1,033 | tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/xml/ContextProvidingValidationEventHandler.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.processor.util.xml;
import jakarta.xml.bind.ValidationEvent;
import jakarta.xml.bind.ValidationEventHandler;
import jakarta.xml.bind.ValidationEventLocator;
/**
* Validation event handler used for obtaining line and column numbers in case of parsing failures.
*
* @author Hardy Ferentschik
*/
public class ContextProvidingValidationEventHandler implements ValidationEventHandler {
private int lineNumber;
private int columnNumber;
private String message;
@Override
public boolean handleEvent(ValidationEvent validationEvent) {
ValidationEventLocator locator = validationEvent.getLocator();
lineNumber = locator.getLineNumber();
columnNumber = locator.getColumnNumber();
message = validationEvent.getMessage();
return false;
}
public int getLineNumber() {
return lineNumber;
}
public int getColumnNumber() {
return columnNumber;
}
public String getMessage() {
return message;
}
}
|
hibernate/hibernate-orm | 1,036 | hibernate-testing/src/main/java/org/hibernate/testing/orm/domain/animal/Name.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.testing.orm.domain.animal;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
@Embeddable
public class Name {
private String first;
private Character initial;
private String last;
public Name() {}
public Name(String first, Character initial, String last) {
this.first = first;
this.initial = initial;
this.last = last;
}
public Name(String first, char initial, String last) {
this( first, Character.valueOf( initial ), last );
}
@Column( name = "name_first" )
public String getFirst() {
return first;
}
public void setFirst(String first) {
this.first = first;
}
@Column( name = "name_initial" )
public Character getInitial() {
return initial;
}
public void setInitial(Character initial) {
this.initial = initial;
}
@Column( name = "name_last" )
public String getLast() {
return last;
}
public void setLast(String last) {
this.last = last;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.