camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [08/28] camel git commit: Using the ootb methods for parameter retrieval.
Date Fri, 25 Nov 2016 10:00:47 GMT
Using the ootb methods for parameter retrieval.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/37180425
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/37180425
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/37180425

Branch: refs/heads/master
Commit: 371804259a85d67ef0554b109ecd6b319a6149c9
Parents: 522f3e1
Author: gilfernandes <gil.fernandes@gmail.com>
Authored: Tue Nov 22 13:10:02 2016 +0000
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Fri Nov 25 10:05:36 2016 +0100

----------------------------------------------------------------------
 .../org/apache/camel/component/firebase/FirebaseComponent.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/37180425/components/camel-firebase/src/main/java/org/apache/camel/component/firebase/FirebaseComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-firebase/src/main/java/org/apache/camel/component/firebase/FirebaseComponent.java
b/components/camel-firebase/src/main/java/org/apache/camel/component/firebase/FirebaseComponent.java
index 8b80a2a..0f62e16 100644
--- a/components/camel-firebase/src/main/java/org/apache/camel/component/firebase/FirebaseComponent.java
+++ b/components/camel-firebase/src/main/java/org/apache/camel/component/firebase/FirebaseComponent.java
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
@@ -39,8 +39,8 @@ public class FirebaseComponent extends UriEndpointComponent {
 
         FirebaseConfig firebaseConfig = new FirebaseConfig.Builder(
                 String.format("https://%s", remaining),
-                (String) parameters.get("rootReference"),
-                (String) parameters.get("serviceAccountFile"))
+                getAndRemoveParameter(parameters, "rootReference", String.class),
+                getAndRemoveParameter(parameters, "serviceAccountFile", String.class))
                 .build();
 
         firebaseConfig.init();


Mime
View raw message