When hiding a class by stereotype it leaves an empty space, while hiding by name leaves no space.
Not tested with other components or diagrams!
This leaves a space:
@startuml
class a <<jj>>
class b
hide <<jj>>
@enduml
This doesn't:
@startuml
class a <<jj>>
class b
hide a
@enduml