repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/incubator-kie-drools
1,050
drools-examples/src/main/java/org/drools/examples/banking/BankingExample1.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.examples.banking; public class BankingExample1 { public static void main(String[] args) { new RuleRunner().runRules( new String[] { "Example1.drl" }, new Object[0] ); } }
apache/incubator-kie-drools
1,058
drools-mvel/src/test/java/org/drools/mvel/compiler/Option.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.mvel.compiler; public class Option<T> { private final T t; public Option(T t) { this.t = t; } public boolean isDefined() { return t != null; } public T get() { return t; } }
apache/incubator-tuweni
1,080
units/src/main/java/org/apache/tuweni/units/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. * * Classes and utilities for working with 256 bit integers and Ethereum units. * * <p> * These classes are included in the standard Tuweni distribution, or separately when using the gradle dependency * 'org.apache.tuweni:tuweni-units' (tuweni-units.jar). */ package org.apache.tuweni.units;
apache/incubator-weex
1,075
android/sdk/src/main/java/org/apache/weex/utils/WXMap.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.weex.utils; import java.io.Serializable; import java.util.HashMap; public class WXMap extends HashMap<String, String> implements Serializable { public String put(String key, byte[] value) { return super.put(key, new String(value)); } }
apache/inlong
1,057
inlong-audit/audit-common/src/main/java/org/apache/inlong/audit/http/StatusCode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.audit.http; public class StatusCode { public static final int SUCCESS = 1; public static final int ILLEGAL_ARGUMENT = -100; public static final int EXCEED_LEN = -101; public static final int SERVICE_ERR = -105; }
apache/iotdb
1,043
iotdb-client/session/src/main/java/org/apache/iotdb/session/subscription/consumer/AckStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.session.subscription.consumer; public enum AckStrategy { BEFORE_CONSUME, AFTER_CONSUME; public static AckStrategy defaultValue() { // Use AFTER_CONSUME by default return AFTER_CONSUME; } }
apache/iotdb
1,057
iotdb-client/service-rpc/src/test/java/org/apache/iotdb/rpc/TSStatusCodeTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.rpc; import org.junit.Assert; import org.junit.Test; public class TSStatusCodeTest { @Test public void testToString() { Assert.assertEquals("SUCCESS_STATUS(200)", TSStatusCode.SUCCESS_STATUS.toString()); } }
apache/jackrabbit-oak
1,058
oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/session/OakJcrConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.jackrabbit.oak.jcr.session; public interface OakJcrConstants { int DEFAULT_WARN_LOG_STRING_SIZE_THRESHOLD_VALUE = 102400; String WARN_LOG_STRING_SIZE_THRESHOLD_KEY = "oak.repository.node.property.logWarnStringSizeThreshold"; }
apache/jclouds
1,051
apis/openstack-trove/src/main/java/org/jclouds/openstack/trove/v1/internal/Volume.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jclouds.openstack.trove.v1.internal; public class Volume{ private final int size; public Volume(int size){ this.size = size; } /** * @return the size */ public int getSize() { return size; } }
apache/jena
1,039
jena-extras/jena-serviceenhancer/src/main/java/org/apache/jena/sparql/service/enhancer/impl/GroupedBatch.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.sparql.service.enhancer.impl; /** Interface that combines a group key with a {@link Batch} */ public interface GroupedBatch<G, K extends Comparable<K>, V> { G getGroupKey(); Batch<K, V> getBatch(); }
apache/jena
1,068
jena-arq/src/main/java/org/apache/jena/system/buffering/BufferingCtl.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.system.buffering; public interface BufferingCtl { /** * Push the buffered changes into the base object */ public void flush() ; /** * Remove any changes that are buffered. */ public void reset() ; }
apache/jena
1,079
jena-tdb2/src/test/java/org/apache/jena/tdb2/sys/TestSys.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.tdb2.sys; import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.Test; import org.apache.jena.tdb2.TDB2; public class TestSys { @Test public void sys1() { assertNotNull(TDB2.VERSION); } }
apache/kafka
1,056
clients/src/main/java/org/apache/kafka/clients/admin/ListPartitionReassignmentsOptions.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.clients.admin; /** * Options for {@link AdminClient#listPartitionReassignments(ListPartitionReassignmentsOptions)} */ public class ListPartitionReassignmentsOptions extends AbstractOptions<ListPartitionReassignmentsOptions> { }
apache/kafka
1,059
streams/src/main/java/org/apache/kafka/streams/errors/MissingSourceTopicException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.streams.errors; public class MissingSourceTopicException extends StreamsException { private static final long serialVersionUID = 1L; public MissingSourceTopicException(final String message) { super(message); } }
apache/kafka
1,065
connect/api/src/main/java/org/apache/kafka/connect/sink/SinkConnectorContext.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.connect.sink; import org.apache.kafka.connect.connector.ConnectorContext; /** * A context to allow a {@link SinkConnector} to interact with the Kafka Connect runtime. */ public interface SinkConnectorContext extends ConnectorContext { }
apache/kylin
1,037
src/spark-project/engine-build-sdk/src/main/java/org/apache/kylin/engine/spark/job/EnviromentAdaptor.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.engine.spark.job; import java.util.Map; import org.apache.spark.sql.SparkSession; public interface EnviromentAdaptor { Boolean prepareEnviroment(SparkSession spark, Map<String, String> params); }
apache/kylin
1,055
src/core-metadata/src/main/java/org/apache/kylin/rest/security/AclEntityType.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.rest.security; /** */ public class AclEntityType { private AclEntityType() { } public static final String N_DATA_MODEL = "NDataModel"; public static final String PROJECT_INSTANCE = "ProjectInstance"; }
apache/kylin
1,075
src/tool/src/main/java/org/apache/kylin/tool/CancelableTask.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.tool; public abstract class CancelableTask { private CancelHook hook = () -> false; public boolean isCanceled() { return hook.isCanceled(); } public void setHook(CancelHook hook) { this.hook = hook; } }
apache/lens
1,059
lens-server-api/src/main/java/org/apache/lens/server/api/health/HealthStatus.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.lens.server.api.health; import lombok.Getter; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor public class HealthStatus { @Getter private final boolean isHealthy; @Getter private final String details; }
apache/logging-log4j2
1,039
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache license, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the license for the specific language governing permissions and * limitations under the license. */ /** * Support classes for the Rolling File Appender. */ @Export @Version("2.26.0") package org.apache.logging.log4j.core.appender.rolling.action; import org.osgi.annotation.bundle.Export; import org.osgi.annotation.versioning.Version;
apache/logging-log4j2
1,044
log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Layouts.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.test.categories; /** * Categories for layouts that require extra dependencies. */ public interface Layouts { interface Csv {} interface Json {} interface Xml {} interface Yaml {} }
apache/marmotta
1,046
commons/marmotta-commons/src/ext/java/javolution/util/service/SortedMapService.java
/* * Javolution - Java(TM) Solution for Real-Time and Embedded Systems * Copyright (C) 2012 - Javolution (http://javolution.org/) * All rights reserved. * * Permission to use, copy, modify, and distribute this software is * freely granted, provided that this notice is preserved. */ package javolution.util.service; import java.util.Map; import java.util.SortedMap; /** * The set of related functionalities used to implement sorted map. * * @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a> * @version 6.0, July 21, 2013 */ public interface SortedMapService<K, V> extends MapService<K, V>, SortedMap<K, V> { @Override SortedSetService<Map.Entry<K, V>> entrySet(); @Override SortedMapService<K, V> headMap(K toKey); @Override SortedSetService<K> keySet(); @Override SortedMapService<K, V> subMap(K fromKey, K toKey); @Override SortedMapService<K, V> tailMap(K fromKey); @Override SortedMapService<K, V>[] split(int n, boolean updateable); }
apache/maven-plugins
1,030
maven-javadoc-plugin/src/it/projects/javadoc-fix/src/main/java/fix/test/InterfaceWithJavadoc.java
package fix.test; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Some Javadoc. */ public interface InterfaceWithJavadoc { /** comment */ String MY_STRING_CONSTANT = "value"; /** * My method */ public void method( String aString ); }
apache/metron
1,049
metron-stellar/stellar-common/src/main/java/org/apache/metron/stellar/dsl/ParseException.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.stellar.dsl; public class ParseException extends RuntimeException { public ParseException(String reason) { super(reason); } public ParseException(String reason, Throwable t) { super(reason, t); } }
apache/myfaces
1,080
api/src/main/java/jakarta/faces/model/DataModelListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package jakarta.faces.model; /** * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">Faces Specification</a> */ public interface DataModelListener extends java.util.EventListener { void rowSelected(DataModelEvent event); }
apache/nifi
1,062
nifi-framework-api/src/main/java/org/apache/nifi/action/details/MoveDetails.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.action.details; /** * Provides details about a move action. */ public interface MoveDetails extends ActionDetails { String getGroup(); String getGroupId(); String getPreviousGroup(); String getPreviousGroupId(); }
apache/opennlp
1,062
opennlp-api/src/main/java/opennlp/tools/parser/ParserEventTypeEnum.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package opennlp.tools.parser; /** * Enumeration of event types for a {@link Parser}. */ public enum ParserEventTypeEnum { BUILD, CHECK, // TODO Add reason why those enum values are deprecated @Deprecated CHUNK, @Deprecated TAG, ATTACH }
apache/openwebbeans
1,047
webbeans-impl/src/test/java/org/apache/webbeans/test/specalization/multiple/BeanB.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.specalization.multiple; import jakarta.enterprise.inject.Specializes; @Specializes public class BeanB extends BeanA { @Override public Class getBeanClass() { return BeanB.class; } }
apache/openwebbeans
1,047
webbeans-impl/src/test/java/org/apache/webbeans/test/specalization/multiple/BeanC.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.specalization.multiple; import jakarta.enterprise.inject.Specializes; @Specializes public class BeanC extends BeanB { @Override public Class getBeanClass() { return BeanC.class; } }
apache/openwebbeans
1,049
webbeans-impl/src/test/java/org/apache/webbeans/test/portable/alternative/Egg.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.portable.alternative; import jakarta.enterprise.context.ApplicationScoped; import jakarta.inject.Named; @Named @ApplicationScoped public class Egg { public int getSize() { return 42; } }
apache/ozhera
1,027
ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ReqErrorMetricsService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.ozhera.monitor.service.api; import org.apache.ozhera.monitor.pojo.ReqErrorMetricsPOJO; public interface ReqErrorMetricsService { ReqErrorMetricsPOJO getErrorMetricsByMetrics(String metrics); }
apache/parquet-java
1,066
parquet-variant/src/main/java/org/apache/parquet/variant/Metadata.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.parquet.variant; import java.nio.ByteBuffer; interface Metadata { /* * Return the dictionary index of the provided key, possibly modifying the metadata if necessary. */ int getOrInsert(String key); ByteBuffer getEncodedBuffer(); }
apache/pekko-http
1,040
http-core/src/main/java/org/apache/pekko/http/javadsl/model/headers/AccessControlRequestMethod.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * license agreements; and to You under the Apache License, version 2.0: * * https://www.apache.org/licenses/LICENSE-2.0 * * This file is part of the Apache Pekko project, which was derived from Akka. */ /* * Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com> */ package org.apache.pekko.http.javadsl.model.headers; import org.apache.pekko.http.javadsl.model.HttpMethod; /** * Model for the `Access-Control-Request-Method` header. Specification: * http://www.w3.org/TR/cors/#access-control-request-method-request-header */ public abstract class AccessControlRequestMethod extends org.apache.pekko.http.scaladsl.model.HttpHeader { public abstract HttpMethod method(); public static AccessControlRequestMethod create(HttpMethod method) { return new org.apache.pekko.http.scaladsl.model.headers .Access$minusControl$minusRequest$minusMethod( ((org.apache.pekko.http.scaladsl.model.HttpMethod) method)); } }
apache/pekko
1,028
serialization-jackson/src/test/java/jdoc/org/apache/pekko/serialization/jackson/v2b/ItemAddedMigration.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * license agreements; and to You under the Apache License, version 2.0: * * https://www.apache.org/licenses/LICENSE-2.0 * * This file is part of the Apache Pekko project, which was derived from Akka. */ /* * Copyright (C) 2019-2022 Lightbend Inc. <https://www.lightbend.com> */ package jdoc.org.apache.pekko.serialization.jackson.v2b; // #add-mandatory import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.DoubleNode; import com.fasterxml.jackson.databind.node.ObjectNode; import org.apache.pekko.serialization.jackson.JacksonMigration; public class ItemAddedMigration extends JacksonMigration { @Override public int currentVersion() { return 2; } @Override public JsonNode transform(int fromVersion, JsonNode json) { ObjectNode root = (ObjectNode) json; if (fromVersion <= 1) { root.set("discount", DoubleNode.valueOf(0.0)); } return root; } } // #add-mandatory
apache/phoenix
1,038
phoenix-core-client/src/main/java/org/apache/phoenix/hbase/index/covered/update/IndexedColumnGroup.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.phoenix.hbase.index.covered.update; import java.util.List; /** * Group of columns that were requested to build an index */ public interface IndexedColumnGroup { public List<ColumnReference> getColumns(); }
apache/pinot
1,029
pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/IsDistinctFromTransformFunctionTest.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.pinot.core.operator.transform.function; public class IsDistinctFromTransformFunctionTest extends DistinctFromTransformFunctionTest { IsDistinctFromTransformFunctionTest() { super(true); } }
apache/pulsar
1,032
pulsar-client-admin-api/src/main/java/org/apache/pulsar/common/policies/data/TransactionInPendingAckStats.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.common.policies.data; import lombok.Data; @Data public class TransactionInPendingAckStats { /** The position of this transaction cumulative ack. */ public String cumulativeAckPosition; }
apache/qpid-broker-j
1,046
broker-core/src/main/java/org/apache/qpid/server/txn/NotAssociatedDtxException.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.server.txn; public class NotAssociatedDtxException extends DtxException { public NotAssociatedDtxException(Xid id) { super("Xid " + id + " not associated with the current session"); } }
apache/qpid-broker-j
1,048
broker-core/src/main/java/org/apache/qpid/server/store/ConfiguredObjectDependency.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.server.store; import org.apache.qpid.server.model.ConfiguredObject; public interface ConfiguredObjectDependency<C extends ConfiguredObject<C>> { Class<C> getCategoryClass(); void resolve(C object); }
apache/qpid-broker-j
1,051
broker-core/src/main/java/org/apache/qpid/server/util/RandomUUIDGen.java
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ package org.apache.qpid.server.util; import java.util.UUID; /** * RandomUUIDGen * */ public final class RandomUUIDGen implements UUIDGen { @Override public UUID generate() { return UUID.randomUUID(); } }
apache/royale-compiler
1,041
compiler/src/main/java/org/apache/royale/compiler/tree/metadata/IAccessibilityTagNode.java
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.royale.compiler.tree.metadata; /** * Represents a metadata tag of the form * [AccessibilityClass(implementation="qualifed.name")] */ public interface IAccessibilityTagNode extends IMetaTagNode { }
apache/samza
1,065
samza-api/src/main/java/org/apache/samza/serializers/DoubleSerdeFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.serializers; import org.apache.samza.config.Config; public class DoubleSerdeFactory implements SerdeFactory<Double> { @Override public Serde<Double> getSerde(String name, Config config) { return new DoubleSerde(); } }
apache/seatunnel-web
1,044
seatunnel-server/seatunnel-app/src/main/java/org/apache/seatunnel/app/service/BaseService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.service; import org.apache.seatunnel.app.common.Result; import org.apache.seatunnel.app.common.Status; public interface BaseService { void putMsg(Result result, Status status, Object... statusParams); }
apache/shindig
1,038
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/StyleTagExtractorContentRewriterTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.shindig.gadgets.rewrite; import org.junit.Test; public class StyleTagExtractorContentRewriterTest { @Test public void implementIntegrationTests() throws Exception { // TODO: what the method says } }
apache/solr
1,063
solr/core/src/test/org/apache/solr/update/processor/CustomUpdateRequestProcessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.update.processor; /** A pass through processor that does nothing. */ public class CustomUpdateRequestProcessor extends UpdateRequestProcessor { public CustomUpdateRequestProcessor(UpdateRequestProcessor next) { super(next); } }
apache/solr
1,068
solr/solrj/src/java/org/apache/solr/client/solrj/beans/BindingException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.solr.client.solrj.beans; public class BindingException extends RuntimeException { public BindingException(String message) { super(message); } public BindingException(String message, Throwable cause) { super(message, cause); } }
apache/solr
1,078
solr/core/src/java/org/apache/solr/cluster/placement/ReplicaMetric.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.cluster.placement; /** * Replica metric identifier, corresponding to one of the internal replica-level metric names (as * reported in <code>solr.core.[collection].[replica]</code> registry) */ public interface ReplicaMetric<T> extends Metric<T> {}
apache/storm
1,059
storm-webapp/src/main/java/org/apache/storm/daemon/logviewer/LogviewerConstant.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.storm.daemon.logviewer; /** * Constants which are used across logviewer related classes. */ public final class LogviewerConstant { private LogviewerConstant() { } public static final int DEFAULT_BYTES_PER_PAGE = 51200; }
apache/streampipes
1,030
streampipes-model/src/main/java/org/apache/streampipes/model/connect/adapter/compact/TransformationConfig.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.streampipes.model.connect.adapter.compact; import java.util.Map; public record TransformationConfig(Map<String, String> rename, Map<String, String> measurementUnit) { }
apache/struts
1,070
core/src/main/java/org/apache/struts2/action/ServletContextAware.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.struts2.action; import jakarta.servlet.ServletContext; /** * For components that have a dependence on the Servlet context. * * @since 6.0.0 */ public interface ServletContextAware { void withServletContext(ServletContext context); }
apache/syncope
1,034
core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AttrRepoRepoExt.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.AttrRepo; @FunctionalInterface public interface AttrRepoRepoExt { AttrRepo save(AttrRepo attrRepo); }
apache/tapestry-5
1,051
tapestry-jpa/src/test/java/org/apache/tapestry5/jpa/test/NestedServiceImpl.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.jpa.test; import jakarta.persistence.EntityManager; import org.apache.tapestry5.jpa.test.entities.ThingTwo; public class NestedServiceImpl implements NestedService { private final EntityManager em; public NestedServiceImpl(EntityManager em) { this.em = em; } public void createThingTwo(String nameTwo) { ThingTwo thingTwo = new ThingTwo(); thingTwo.setName(nameTwo); em.persist(thingTwo); } }
apache/teaclave-java-tee-sdk
1,049
test/common/src/main/java/org/apache/teaclave/javasdk/test/common/RSAService.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR 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.teaclave.javasdk.test.common; import org.apache.teaclave.javasdk.common.annotations.EnclaveService; @EnclaveService public interface RSAService { String encryptAndDecryptWithPlaintext(String plaintext) throws Exception; }
apache/teaclave-java-tee-sdk
1,049
test/common/src/main/java/org/apache/teaclave/javasdk/test/common/SM2Service.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR 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.teaclave.javasdk.test.common; import org.apache.teaclave.javasdk.common.annotations.EnclaveService; @EnclaveService public interface SM2Service { String encryptAndDecryptWithPlaintext(String plaintext) throws Exception; }
apache/tomcat-maven-plugin
1,035
tomcat7-maven-plugin/src/test/java/org/apache/tomcat/maven/it/Tomcat7DeployWarProjectIT.java
package org.apache.tomcat.maven.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.tomcat.maven.it.AbstractDeployWarProjectIT; /** * @author Olivier Lamy */ public class Tomcat7DeployWarProjectIT extends AbstractDeployWarProjectIT { // no op }
apache/tomcat-maven-plugin
1,035
tomcat8-maven-plugin/src/test/java/org/apache/tomcat/maven/it/Tomcat8DeployWarProjectIT.java
package org.apache.tomcat.maven.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.tomcat.maven.it.AbstractDeployWarProjectIT; /** * @author Olivier Lamy */ public class Tomcat8DeployWarProjectIT extends AbstractDeployWarProjectIT { // no op }
apache/tomcat80
1,100
java/org/apache/el/parser/AstMapEntry.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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:JJTree: Do not edit this line. AstMapEntry.java Version 4.3 */ package org.apache.el.parser; public class AstMapEntry extends SimpleNode { public AstMapEntry(int id) { super(id); } } /* JavaCC - OriginalChecksum=6a7910e58a583371769800554113a8d3 (do not edit this line) */
apache/tomee
1,064
container/openejb-core/src/main/java/org/apache/openejb/util/DurationEditor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.util; import java.beans.PropertyEditorSupport; public class DurationEditor extends PropertyEditorSupport { public void setAsText(final String text) { final Duration d = Duration.parse(text); setValue(d); } }
apache/tsfile
1,062
java/tsfile/src/main/java/org/apache/tsfile/read/expression/IExpression.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.tsfile.read.expression; import java.io.Serializable; import java.nio.ByteBuffer; public interface IExpression extends Serializable { ExpressionType getType(); IExpression clone(); void serialize(ByteBuffer byteBuffer); }
apache/twill
1,074
twill-api/src/main/java/org/apache/twill/api/logging/LogHandler.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.twill.api.logging; /** * Represents class that can receive logs from the application. */ public interface LogHandler { /** * Invokes when there is new {@link LogEntry} received from the application. */ void onLog(LogEntry logEntry); }
apache/uniffle
1,045
coordinator/src/main/java/org/apache/uniffle/coordinator/strategy/host/HostAssignmentStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.uniffle.coordinator.strategy.host; import java.util.List; import org.apache.uniffle.coordinator.ServerNode; public interface HostAssignmentStrategy { List<ServerNode> assign(List<ServerNode> allNodes, int expectNum); }
apache/usergrid
1,044
stack/services/src/main/java/org/apache/usergrid/services/generic/GenericConnectionsService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.usergrid.services.generic; import org.apache.usergrid.services.AbstractConnectionsService; public class GenericConnectionsService extends AbstractConnectionsService { public GenericConnectionsService() { } }
google/bindiff
1,044
java/zylib/src/main/java/com/google/security/zynamics/zylib/disassembly/IInstruction.java
// Copyright 2011-2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // 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.security.zynamics.zylib.disassembly; import java.util.List; public interface IInstruction { IAddress getAddress(); String getArchitecture(); byte[] getData(); long getLength(); String getMnemonic(); // TODO(jannewger): this should be pulled up into ReilInstruction since there are no additional // cross references to this method. Integer getMnemonicCode(); List<? extends IOperandTree> getOperands(); }
google/binnavi
1,040
src/main/java/com/google/security/zynamics/zylib/gui/zygraph/layouters/OrthogonalOrientation.java
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.zylib.gui.zygraph.layouters; public enum OrthogonalOrientation { VERTICAL, HORIZONTAL; public static OrthogonalOrientation parseInt(final int orientation) { if (orientation == VERTICAL.ordinal()) { return VERTICAL; } else if (orientation == HORIZONTAL.ordinal()) { return HORIZONTAL; } else { throw new IllegalStateException("Internal Error: Unknown orientation"); } } }
google/CallBuilder
1,064
third_party/jsr-305/src/main/java/javax/annotation/RegEx.java
package javax.annotation; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import javax.annotation.meta.TypeQualifierNickname; import javax.annotation.meta.TypeQualifierValidator; import javax.annotation.meta.When; /** * This qualifier is used to denote String values that should be a Regular * expression. * */ @Documented @Syntax("RegEx") @TypeQualifierNickname @Retention(RetentionPolicy.RUNTIME) public @interface RegEx { When when() default When.ALWAYS; static class Checker implements TypeQualifierValidator<RegEx> { public When forConstantValue(RegEx annotation, Object value) { if (!(value instanceof String)) return When.NEVER; try { Pattern.compile((String) value); } catch (PatternSyntaxException e) { return When.NEVER; } return When.ALWAYS; } } }
google/copybara
1,071
java/com/google/copybara/git/gerritapi/DeleteReviewerInput.java
/* * Copyright (C) 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.copybara.git.gerritapi; import com.google.api.client.util.Key; import javax.annotation.Nullable; /** * See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-reviewer-input * * <p> NotifyInfo (notify_details) not included for now */ public class DeleteReviewerInput { @Key String notify; public DeleteReviewerInput(@Nullable NotifyType notify) { this.notify = notify == null ? null : notify.toString(); } }
google/fhir
1,087
java/com/google/fhir/wrappers/NumericTypeWrapper.java
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.fhir.wrappers; import com.google.gson.JsonPrimitive; import com.google.protobuf.Message; import java.math.BigDecimal; /** An abstract wrapper class around numeric FHIR primitive types. */ public abstract class NumericTypeWrapper<T extends Message> extends PrimitiveWrapper<T> { protected NumericTypeWrapper(T t) { super(t); } @Override public JsonPrimitive toJson() { return new JsonPrimitive(new BigDecimal(toString())); } }
google/flatbuffers
1,095
tests/MyGame/Example/AbilityT.java
// automatically generated by the FlatBuffers compiler, do not modify package MyGame.Example; import com.google.flatbuffers.BaseVector; import com.google.flatbuffers.BooleanVector; import com.google.flatbuffers.ByteVector; import com.google.flatbuffers.Constants; import com.google.flatbuffers.DoubleVector; import com.google.flatbuffers.FlatBufferBuilder; import com.google.flatbuffers.FloatVector; import com.google.flatbuffers.IntVector; import com.google.flatbuffers.LongVector; import com.google.flatbuffers.ShortVector; import com.google.flatbuffers.StringVector; import com.google.flatbuffers.Struct; import com.google.flatbuffers.Table; import com.google.flatbuffers.UnionVector; import java.nio.ByteBuffer; import java.nio.ByteOrder; public class AbilityT { private long id; private long distance; public long getId() { return id; } public void setId(long id) { this.id = id; } public long getDistance() { return distance; } public void setDistance(long distance) { this.distance = distance; } public AbilityT() { this.id = 0L; this.distance = 0L; } }
google/graphicsfuzz
1,058
ast/src/main/java/com/graphicsfuzz/common/glslversion/Glsl460.java
/* * Copyright 2018 The GraphicsFuzz Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.graphicsfuzz.common.glslversion; final class Glsl460 extends CompositeShadingLanguageVersion { static final ShadingLanguageVersion INSTANCE = new Glsl460(Glsl450.INSTANCE); private Glsl460(ShadingLanguageVersion prototype) { super(prototype); // Singleton } @Override public String getVersionString() { return "460"; } @Override public boolean supportedPushConstants() { return true; } }
google/gson
1,092
gson/src/main/java/com/google/gson/package-info.java
/* * Copyright (C) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * This package provides the {@link com.google.gson.Gson} class to convert Json to Java and * vice-versa. * * <p>The primary class to use is {@link com.google.gson.Gson} which can be constructed with {@code * new Gson()} (using default settings) or by using {@link com.google.gson.GsonBuilder} (to * configure various options such as using versioning and so on). * * @author Inderjeet Singh, Joel Leitch */ @com.google.errorprone.annotations.CheckReturnValue package com.google.gson;
google/j2cl
1,036
junit/generator/javatests/com/google/j2cl/junit/apt/JUnit4TestCaseVoidReturnTypeParameterizedMethod.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.junit.apt; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; /** A simple Unit test to test processing in {@link J2clTestingProcessingStepTest}. */ @RunWith(Parameterized.class) public class JUnit4TestCaseVoidReturnTypeParameterizedMethod { @Parameters public static void data() {} @Test public void test() {} }
google/j2cl
1,064
transpiler/javatests/com/google/j2cl/optimization/OptimizationTestSuite.java
/* * Copyright 2023 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.j2cl.optimization; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) @SuiteClasses({ ArrayListOptimizationTest.class, ArrayOptimizationTest.class, BooleanOptimizationTest.class, EnumOptimizationTest.class, CastDisableOptimizationTest.class, StringOptimizationTest.class, SwitchExpressionOptimizationTest.class }) public class OptimizationTestSuite {}
google/j2objc
1,045
jre_emul/android/platform/libcore/support/src/test/java/tests/support/Support_PlatformFile.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package tests.support; public class Support_PlatformFile { private static String platformId = "com.google.j2objc"; public static String getNewPlatformFile(String pre, String post) { return pre + platformId + post; } }
google/libaddressinput
1,061
android/src/main/java/com/android/i18n/addressinput/PlaceDetailsApi.java
/* * Copyright (C) 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.i18n.addressinput; import com.google.common.util.concurrent.ListenableFuture; import com.google.i18n.addressinput.common.AddressAutocompletePrediction; import com.google.i18n.addressinput.common.AddressData; /** * An interface for transforming an {@link AddressAutocompletePrediction} into {@link AddressData}. */ public interface PlaceDetailsApi { ListenableFuture<AddressData> getAddressData(AddressAutocompletePrediction prediction); }
google/rich-test-results
1,061
src/main/java/com/google/testing/results/XmlParseException.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.testing.results; /** * The input is not a well formed XML file or expected Ant (Junit task) XML * element not found in the XML file. */ public class XmlParseException extends Exception { public XmlParseException(String message) { super(message); } public XmlParseException(Throwable cause) { super(cause); } public XmlParseException(String message, Throwable cause) { super(message, cause); } }
googlemaps/google-maps-services-java
1,058
src/main/java/com/google/maps/model/TrafficModel.java
/* * Copyright 2015 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.maps.model; import com.google.maps.internal.StringJoin.UrlValue; import java.util.Locale; /** Specifies traffic prediction model when requesting future directions. */ public enum TrafficModel implements UrlValue { BEST_GUESS, OPTIMISTIC, PESSIMISTIC; @Override public String toString() { return name().toLowerCase(Locale.ENGLISH); } @Override public String toUrlValue() { return toString(); } }
hibernate/hibernate-ogm
1,027
core/src/test/java/org/hibernate/ogm/backendtck/massindex/model/NewsIdFieldBridge.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.backendtck.massindex.model; import org.hibernate.ogm.backendtck.id.NewsID; import org.hibernate.search.bridge.TwoWayStringBridge; /** * This is a simple implementation used by some tests; it's not supposed to be an example on how to implement a * {@link TwoWayStringBridge}. * * @author Davide D'Alto &lt;davide@hibernate.org&gt; */ public class NewsIdFieldBridge implements TwoWayStringBridge { private static final String SEP = "::::"; @Override public String objectToString(Object object) { NewsID newsId = (NewsID) object; return newsId.getTitle() + SEP + newsId.getAuthor(); } @Override public Object stringToObject(String stringValue) { String[] split = stringValue.split( SEP ); return new NewsID( split[0], split[1] ); } }
hibernate/hibernate-reactive
1,045
hibernate-reactive-core/src/main/java/org/hibernate/reactive/tuple/StageGenerator.java
/* Hibernate, Relational Persistence for Idiomatic Java * * SPDX-License-Identifier: Apache-2.0 * Copyright: Red Hat Inc. and Hibernate Authors */ package org.hibernate.reactive.tuple; import java.util.concurrent.CompletionStage; import org.hibernate.Incubating; import org.hibernate.engine.spi.SharedSessionContractImplementor; import org.hibernate.generator.BeforeExecutionGenerator; import org.hibernate.generator.EventType; import org.hibernate.reactive.stage.Stage; @Incubating public abstract class StageGenerator implements BeforeExecutionGenerator { @Override public Object generate(SharedSessionContractImplementor session, Object owner, Object currentValue, EventType eventType) { throw new UnsupportedOperationException( "Use generate(Stage.Session, Object, Object, EventType) instead" ); } public abstract CompletionStage<Object> generate(Stage.Session session, Object owner, Object currentValue, EventType eventType); }
openjdk/jdk8
1,076
langtools/test/tools/javac/diags/examples/NotDefPublicCantAccess/p/C.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p; class C { }
openjdk/jdk8
1,084
langtools/test/com/sun/javadoc/testBadPackageFileInJar/pkg/C.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg; public class C {}
openjdk/jdk8
1,088
langtools/test/com/sun/javadoc/testPackagePage/com/pkg/C.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.pkg; public class C {}
openjdk/jdk8
1,088
langtools/test/com/sun/javadoc/testTitleInHref/pkg/Class.java
/* * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg; public class Class {}
openjdk/jdk8
1,101
jdk/test/java/util/ServiceLoader/FooProvider1.java
/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class FooProvider1 extends FooService { }
openjdk/jdk8
1,101
jdk/test/java/util/ServiceLoader/FooProvider2.java
/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class FooProvider2 extends FooService { }
openjdk/jdk8
1,101
jdk/test/java/util/ServiceLoader/FooProvider3.java
/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ public class FooProvider3 extends FooService { }
oracle/coherence
1,048
prj/test/functional/jpa/src/main/java/orm/JpaCacheStoreWithIdClassTests.java
/* * Copyright (c) 2000, 2024, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package orm; import data.persistence.DomainClassPolicy; public class JpaCacheStoreWithIdClassTests extends AbstractPersistenceTests { // ----- constructors --------------------------------------------------- /** * Default constructor. */ public JpaCacheStoreWithIdClassTests() { super(CONFIG_FILE_NAME); } // ----- AbstractPersistenceTests methods ------------------------------- protected void initCache() throws Exception { m_cache = getNamedCache(ENTITY_PERSON_ID_CLASS); } protected void initDomainClassPolicy() { m_policy = new DomainClassPolicy.CompoundPerson1Class(); } // ----- constants ------------------------------------------------------ public static String CONFIG_FILE_NAME = "jpa-cache-config.xml"; }
oracle/nosql
1,076
kvmain/src/main/java/com/sleepycat/je/utilint/DbCacheSizeRepEnv.java
/*- * Copyright (C) 2002, 2025, Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package com.sleepycat.je.utilint; import java.io.File; import java.util.Map; import com.sleepycat.je.Environment; import com.sleepycat.je.EnvironmentConfig; /** * Interface for opening a ReplicatedEnvironment from a JE standalone utility, * DbCacheSize. Implemented by com.sleepycat.je.rep.utilint.DbCacheSizeRepEnv, * which must be instantiated from standalone JE using Class.forName. */ public interface DbCacheSizeRepEnv { public Environment open(File envHome, EnvironmentConfig envConfig, Map<String, String> repParams); }
apache/cordova-plugin-file
1,080
src/android/NoModificationAllowedException.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 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.cordova.file; @SuppressWarnings("serial") public class NoModificationAllowedException extends Exception { public NoModificationAllowedException(String message) { super(message); } }
apache/cxf
1,028
rt/transports/http-netty/netty-client/src/main/java/org/apache/cxf/transport/http/netty/client/CxfResponseCallBack.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.transport.http.netty.client; import io.netty.handler.codec.http.HttpResponse; public interface CxfResponseCallBack { void responseReceived(HttpResponse response); void error(Throwable ex); }
apache/cxf
1,071
rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/DummyImpl.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cxf.jaxws.support; import jakarta.jws.soap.SOAPBinding; import jakarta.jws.soap.SOAPBinding.ParameterStyle; // this class do nothing here, just for a dispatch impl @SOAPBinding(parameterStyle = ParameterStyle.BARE) public interface DummyImpl { }
apache/deltaspike
1,025
deltaspike/core/impl/obsolete/src/test/java/org/apache/deltaspike/test/core/api/alternative/global/BaseBean1.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.test.core.api.alternative.global; import jakarta.enterprise.context.Dependent; /** * Simple base bean which gets overruled by an global alternative */ @Dependent public class BaseBean1 { }
apache/deltaspike
1,029
deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/domain/mapped/MappedId.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.deltaspike.data.test.domain.mapped; public class MappedId { private Long id; public Long getId() { return id; } public void setId(Long id) { this.id = id; } }
apache/directory-kerby
1,026
kerby-kerb/kerb-crypto/src/main/java/org/apache/kerby/kerberos/kerb/crypto/cksum/provider/Sha1Provider.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR 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.kerby.kerberos.kerb.crypto.cksum.provider; public class Sha1Provider extends MessageDigestHashProvider { public Sha1Provider() { super(20, 64, "SHA1"); } }
apache/dolphinscheduler
1,028
dolphinscheduler-microbench/src/main/java/org/apache/dolphinscheduler/microbench/rpc/IServiceImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.dolphinscheduler.microbench.rpc; public class IServiceImpl implements IService { @Override public String ping(String pingRequest) { return "I get " + pingRequest + ", I am Pong!"; } }
apache/drill
1,056
exec/java-exec/src/main/java/org/apache/drill/exec/exception/JarValidationException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.drill.exec.exception; import org.apache.drill.common.exceptions.DrillRuntimeException; public class JarValidationException extends DrillRuntimeException { public JarValidationException(String message) { super(message); } }
apache/drill
1,076
exec/rpc/src/main/java/org/apache/drill/exec/rpc/RpcMetrics.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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.drill.exec.rpc; /** * Holder interface for all the metrics used in RPC layer */ public interface RpcMetrics { void addConnectionCount(); void decConnectionCount(); long getEncryptedConnectionCount(); long getUnEncryptedConnectionCount(); }
apache/eagle
1,028
eagle-core/eagle-query/eagle-client-base/src/main/java/org/apache/eagle/service/client/security/SecurityConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eagle.service.client.security; public class SecurityConstants { public static final String AUTHORIZATION = "Authorization"; public static final String BASIC_AUTHORIZATION_HEADER_PREFIX = "Basic "; }
apache/eagle
1,038
eagle-core/eagle-query/eagle-storage-jdbc/src/main/java/org/apache/eagle/storage/jdbc/entity/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. */ /** * <h2>Consistency Guarantee</h2> * <ul> * <li> Rollback all changes if any single entity throws exception to make sure consistency guarantee </li> * </ul> * * @since 3/31/15 */ package org.apache.eagle.storage.jdbc.entity;
apache/eventmesh
1,048
eventmesh-common/src/main/java/org/apache/eventmesh/common/config/connector/SinkConfig.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.eventmesh.common.config.connector; import lombok.Data; import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = true) public abstract class SinkConfig extends Config { private PubSubConfig pubSubConfig; }
apache/fesod
1,062
fesod/src/main/java/org/apache/fesod/excel/converters/NullableObjectConverter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fesod.excel.converters; /** * When implementing <code>convertToExcelData</code> method, pay attention to the reference <code>value</code> may be * null * * **/ public interface NullableObjectConverter<T> extends Converter<T> {}