You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2020/02/09 14:46:33 UTC

[camel-spring-boot] branch master updated (83ec443 -> f2735df)

This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git.


    from 83ec443  CAMEL-14471: camel-spring-boot: Disable proxying of bean methods for auto-configuration classes
     new 4694649  camel-example-spring-boot-kafka-avro: Use https to access the confluent maven repository.
     new acf2f22  camel-example-spring-boot-kafka-avro: Remove useless null checks.
     new f2735df  camel-example-spring-boot-rest-producer: Avoid possible ArrayIndexOutOfBoundsException in PetController

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 examples/camel-example-spring-boot-kafka-avro/pom.xml                  | 2 +-
 .../apache/camel/example/kafka/avro/CustomKafkaAvroDeserializer.java   | 3 ---
 .../org/apache/camel/example/kafka/avro/CustomKafkaAvroSerializer.java | 3 ---
 .../src/main/java/sample/camel/PetController.java                      | 2 +-
 4 files changed, 2 insertions(+), 8 deletions(-)


[camel-spring-boot] 03/03: camel-example-spring-boot-rest-producer: Avoid possible ArrayIndexOutOfBoundsException in PetController

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit f2735df722bd3d4a87494698a686ba657017b85d
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Feb 9 15:40:41 2020 +0100

    camel-example-spring-boot-rest-producer: Avoid possible ArrayIndexOutOfBoundsException in PetController
---
 .../src/main/java/sample/camel/PetController.java                       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/camel-example-spring-boot-rest-producer/src/main/java/sample/camel/PetController.java b/examples/camel-example-spring-boot-rest-producer/src/main/java/sample/camel/PetController.java
index 7178b5f..90d0944 100644
--- a/examples/camel-example-spring-boot-rest-producer/src/main/java/sample/camel/PetController.java
+++ b/examples/camel-example-spring-boot-rest-producer/src/main/java/sample/camel/PetController.java
@@ -33,7 +33,7 @@ public class PetController {
 
     @GetMapping(value = "/pets/{id}")
     public Map<String, String> petById(@PathVariable("id") Integer id) {
-        if (id != null && id > 0 && id <= PETS.length + 1) {
+        if (id != null && id > 0 && id <= PETS.length) {
             int index = id - 1;
             String pet = PETS[index];
             return Collections.singletonMap("name", pet);


[camel-spring-boot] 01/03: camel-example-spring-boot-kafka-avro: Use https to access the confluent maven repository.

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit 469464964d2a72e4e17502b8b1b77996615fd9e4
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Feb 9 15:29:21 2020 +0100

    camel-example-spring-boot-kafka-avro: Use https to access the confluent maven repository.
---
 examples/camel-example-spring-boot-kafka-avro/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/camel-example-spring-boot-kafka-avro/pom.xml b/examples/camel-example-spring-boot-kafka-avro/pom.xml
index 44ec1e4..9c4aab8 100644
--- a/examples/camel-example-spring-boot-kafka-avro/pom.xml
+++ b/examples/camel-example-spring-boot-kafka-avro/pom.xml
@@ -41,7 +41,7 @@
     <repositories>
         <repository>
             <id>confluent</id>
-            <url>http://packages.confluent.io/maven/</url>
+            <url>https://packages.confluent.io/maven/</url>
         </repository>
     </repositories>
 


[camel-spring-boot] 02/03: camel-example-spring-boot-kafka-avro: Remove useless null checks.

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit acf2f22827b0b9ce9c4a57fd2821f465d1867d8e
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Feb 9 15:33:41 2020 +0100

    camel-example-spring-boot-kafka-avro: Remove useless null checks.
---
 .../apache/camel/example/kafka/avro/CustomKafkaAvroDeserializer.java   | 3 ---
 .../org/apache/camel/example/kafka/avro/CustomKafkaAvroSerializer.java | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/examples/camel-example-spring-boot-kafka-avro/src/main/java/org/apache/camel/example/kafka/avro/CustomKafkaAvroDeserializer.java b/examples/camel-example-spring-boot-kafka-avro/src/main/java/org/apache/camel/example/kafka/avro/CustomKafkaAvroDeserializer.java
index bfe7ff3..30adb0a 100644
--- a/examples/camel-example-spring-boot-kafka-avro/src/main/java/org/apache/camel/example/kafka/avro/CustomKafkaAvroDeserializer.java
+++ b/examples/camel-example-spring-boot-kafka-avro/src/main/java/org/apache/camel/example/kafka/avro/CustomKafkaAvroDeserializer.java
@@ -37,9 +37,6 @@ public class CustomKafkaAvroDeserializer extends AbstractKafkaAvroDeserializer
         LOG.info("ENTER CustomKafkaAvroDeserializer  : configure method ");
         LOG.info("ENTER CustomKafkaAvroDeserializer  : SCHEMA_REGISTRY_URL " + SCHEMA_REGISTRY_URL);
 
-        if (SCHEMA_REGISTRY_URL == null) {
-            throw new org.apache.kafka.common.config.ConfigException("No schema registry provided");
-        }
         try {
 
             final List<String> schemas = Collections.singletonList(SCHEMA_REGISTRY_URL);
diff --git a/examples/camel-example-spring-boot-kafka-avro/src/main/java/org/apache/camel/example/kafka/avro/CustomKafkaAvroSerializer.java b/examples/camel-example-spring-boot-kafka-avro/src/main/java/org/apache/camel/example/kafka/avro/CustomKafkaAvroSerializer.java
index 35e5a65..8b30404 100644
--- a/examples/camel-example-spring-boot-kafka-avro/src/main/java/org/apache/camel/example/kafka/avro/CustomKafkaAvroSerializer.java
+++ b/examples/camel-example-spring-boot-kafka-avro/src/main/java/org/apache/camel/example/kafka/avro/CustomKafkaAvroSerializer.java
@@ -55,9 +55,6 @@ public class CustomKafkaAvroSerializer extends AbstractKafkaAvroSerializer  impl
         LOG.info("ENTER CustomKafkaAvroDeserializer  : configure method ");
         LOG.info("ENTER CustomKafkaAvroDeserializer  : SCHEMA_REGISTRY_URL " + SCHEMA_REGISTRY_URL);
 
-        if (SCHEMA_REGISTRY_URL == null) {
-            throw new org.apache.kafka.common.config.ConfigException("No schema registry provided");
-        }
         try {
             final List<String> schemas = Collections.singletonList(SCHEMA_REGISTRY_URL);
             this.schemaRegistry = new CachedSchemaRegistryClient(schemas, Integer.MAX_VALUE);