Skip to content

Fix motivating pr#96

Open
galilasmb wants to merge 2 commits intospgroup:developfrom
galilasmb:fix-motivating-pr
Open

Fix motivating pr#96
galilasmb wants to merge 2 commits intospgroup:developfrom
galilasmb:fix-motivating-pr

Conversation

@galilasmb
Copy link
Collaborator

No description provided.

DFPBaseSample inst = new DFPBaseSample("the the dog");
inst.normalizeWhiteSpace(); //Left
inst.removeComments();
inst.removeDuplicateWords(); //Right
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho que aqui precisaria de uma linha a mais com this.text = inst.text, ou então usar o this em todas, já que está manipulando um objeto novo

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mais que isso, @nathaliafab , faz sentido criar o objeto aí? na versão que você encaminhou não tinha isso, até onde lembro. @galilasmb não copiasse o código de @nathaliafab ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Com o this não funciona, temos que saber qual objeto está manipulando, por isso usamos o objeto instanciado em vez do this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

como assim o this não funciona, @galilasmb ? deveria sim ser possível analisar esse método com this. se não é possível, há algo a ser ajustado na implementação da análise.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posso testar mais, mas na última vez ele não conseguia achar o points-to.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pauloborba @galilasmb usando spark realmente o this não funciona. Precisa de um new. Usando o cha, funcionou aqui para mim.

Em um exemplo em que temos this.chamadaDeMetodo() esse método não é acessado pela análise que usa spark. Pelo menos em OA, funciona assim atualmente.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@galilasmb e @barbosamaatheus vocês viram isso aqui?

@pauloborba
Copy link
Member

pauloborba commented Oct 8, 2024 via email

@pauloborba pauloborba requested a review from nathaliafab April 28, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants