Skip to content

Jdt LambdaExpressionAndMethodRefCleanUp - comment dropped when converted to expression #480

@cal101

Description

@cal101

The input

this.hashFunc = key -> {
			//默认使用FNV1hash算法			
			return HashUtil.fnvHash(key.toString());			
		};

becomes

this.hashFunc = key -> HashUtil.fnvHash(key.toString());

@Fabrice-TIERCELIN I read your ticket about important/not important comments and that non important comments may be removed. I agree there are cases like that depending on the cleanup used. But I think comments like the comment above explain most probably something about the solution and since only syntax is removed IMO it should be kept.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions