[
https://issues.apache.org/jira/browse/CAMEL-14361?focusedWorklogId=369886&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-369886
]
ASF GitHub Bot logged work on CAMEL-14361:
------------------------------------------
Author: ASF GitHub Bot
Created on: 10/Jan/20 15:08
Start Date: 10/Jan/20 15:08
Worklog Time Spent: 10m
Work Description: PascalSchumacher commented on pull request #3475:
Clean-up following "CAMEL-14361: Update to avoid reflection in creating http
method" 2
URL: https://github.com/apache/camel/pull/3475
Replace switch statement with inheritance.
Just an idea born from the discussion in
https://github.com/apache/camel/pull/3471#discussion_r364913112
Feel free to reject if you think this is over-engineering.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 369886)
Time Spent: 50m (was: 40m)
> camel-http - Avoid reflection in creating http method
> -----------------------------------------------------
>
> Key: CAMEL-14361
> URL: https://issues.apache.org/jira/browse/CAMEL-14361
> Project: Camel
> Issue Type: Improvement
> Components: camel-http
> Reporter: Claus Ibsen
> Assignee: Zheng Feng
> Priority: Minor
> Fix For: 3.0.1, 3.1.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> In this code
> https://github.com/apache/camel/blob/master/components/camel-http/src/main/java/org/apache/camel/component/http/HttpMethods.java#L52
> We can instead just use a switch on the verb name and create the class via
> regular java code
--
This message was sent by Atlassian Jira
(v8.3.4#803005)