Otavio Rodolfo Piske created CAMEL-22334:
--------------------------------------------

             Summary: camel-ai: avoid deep nested classes
                 Key: CAMEL-22334
                 URL: https://issues.apache.org/jira/browse/CAMEL-22334
             Project: Camel
          Issue Type: Improvement
          Components: camel-langchain4j-web-search, camel-weaviate, 
camel-langchain4j-embeddings, camel-ai, camel-langchain4j-chat, camel-milvus, 
camel-neo4j, camel-pinecone, camel-qdrant
    Affects Versions: 4.13.0
            Reporter: Otavio Rodolfo Piske
             Fix For: 4.x


In Camel AI we have many components that rely on nested classes for headers. 
This is inconsistent with the rest of the code base. 

For instance:
{code:java}
 
public class SomeThingAi {
    public static final String SCHEME = "weaviate";
    private SomeThingAi() {
    }
    public static class Headers {
       // Lots of headers here
    }
}
{code}
 

 

This is inconsistent with the rest of the code base and we should not rely on 
this pattern. 

 

Instead, create a single class for the headers within that component, like all 
others:

 
{code:java}
public class Headers {
    // Lots of headers here
}{code}
 

Some affected components: 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to